diff --git a/checkin_notes b/checkin_notes index 168c8472b9..80b2767969 100644 --- a/checkin_notes +++ b/checkin_notes @@ -6990,3 +6990,9 @@ David 30 Sept 2010 sched/ sched_customize.cpp + +David 30 Sept 2010 + - undo recent change to str_util.h; it broke FCGI compile + + lib/ + str_util.h diff --git a/lib/str_util.h b/lib/str_util.h index ebc8efa4e2..027f484a73 100644 --- a/lib/str_util.h +++ b/lib/str_util.h @@ -18,73 +18,27 @@ #ifndef STR_UTIL_H #define STR_UTIL_H -#ifdef __cplusplus - #include - #include - #include - #include - #include - #include -#else - #include - #include - #include - #include -#endif /* __cplusplus */ +#include +#include +#include +#include +#include +#include #define KILO (1024.0) #define MEGA (1048576.0) #define GIGA (1024.*1048576.0) - -#ifdef __cplusplus -extern "C" { -#endif - extern int ndays_to_string(double x, int smallest_timescale, char *buf); extern void nbytes_to_string(double nbytes, double total_bytes, char* str, int len); extern int parse_command_line(char*, char**); extern void c2x(char *what); extern void strip_whitespace(char *str); - +extern void strip_whitespace(std::string&); #define safe_strcpy(x, y) strlcpy(x, y, sizeof(x)) #define safe_strcat(x, y) if (strlen(x)+strlen(y)