diff --git a/checkin_notes b/checkin_notes index 7ea5115235..85f7fcb8da 100755 --- a/checkin_notes +++ b/checkin_notes @@ -5870,3 +5870,9 @@ David 12 June 2006 api/ boinc_api.C,h + +David 12 June 2006 + - shuffle #ifdefs for ANSI C compile + + lib/ + filesys.h diff --git a/lib/filesys.h b/lib/filesys.h index be25f921d5..c72cce26d3 100755 --- a/lib/filesys.h +++ b/lib/filesys.h @@ -21,15 +21,6 @@ #define _FILESYS_ #if defined(_WIN32) && !defined(__CYGWIN32__) - -typedef struct _DIR_DESC { - char path[256]; - bool first; - void* handle; -} DIR_DESC; - -typedef DIR_DESC *DIRREF; - #else #include #include @@ -38,8 +29,6 @@ typedef DIR_DESC *DIRREF; #include #endif -typedef DIR *DIRREF; - #endif /* !WIN32 */ #ifdef __cplusplus @@ -70,15 +59,26 @@ extern "C" { /* C++ specific prototypes/defines follow here */ #ifdef __cplusplus + extern int file_size(const char*, double&); extern int dir_size(const char* dirpath, double&); extern int get_filesystem_info(double& total, double& free); - // TODO TODO TODO // remove this code - the DirScanner class does the same thing. // But need to rewrite a couple of places that use it // +#if defined(_WIN32) && !defined(__CYGWIN32__) +typedef struct _DIR_DESC { + char path[256]; + bool first; + void* handle; +} DIR_DESC; +typedef DIR_DESC *DIRREF; +#else +typedef DIR *DIRREF; +#endif + extern DIRREF dir_open(const char*); extern int dir_scan(char*, DIRREF, int); int dir_scan(std::string&, DIRREF);