// Test if we have _GNU_SOURCE before the next step will mess up // setting __USE_GNU // (only needed for gcc-2.95 compatibility, gcc 3.2 always defines it) #include // Mario Sergio Fujikawa Ferreira // to detect if this is a *BSD system #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef __BORLANDC__ # pragma hdrstop #endif #include // standard #if defined(__WXMSW__) && !defined(__GNUWIN32__) && !defined(__WXWINE__) && !defined(__WXMICROWIN__) # include #ifndef __SALFORDC__ # define WIN32_LEAN_AND_MEAN # define NOSERVICE # define NOIME # define NOATOM # define NOGDI # define NOGDICAPMASKS # define NOMETAFILE # define NOMINMAX # define NOMSG # define NOOPENFILE # define NORASTEROPS # define NOSCROLL # define NOSOUND # define NOSYSMETRICS # define NOTEXTMETRIC # define NOWH # define NOCOMM # define NOKANJI # define NOCRYPT # define NOMCX #endif #elif (defined(__UNIX__) || defined(__GNUWIN32__)) # include # ifdef __GNUWIN32__ # include # endif #elif defined(__DOS__) # if defined(__WATCOMC__) # include # elif defined(__DJGPP__) # include # include # include # else # error "Please specify the header with file functions declarations." # endif #elif (defined(__WXPM__)) # include #elif (defined(__WXSTUBS__)) // Have to ifdef this for different environments # include #elif (defined(__WXMAC__)) #if __MSL__ < 0x6000 int access( const char *path, int mode ) { return 0 ; } #else int _access( const char *path, int mode ) { return 0 ; } #endif char* mktemp( char * path ) { return path ;} # include # include #else # error "Please specify the header with file functions declarations." #endif //Win/UNIX #include // SEEK_xxx constants #include // O_RDONLY &c #if !defined(__MWERKS__) || defined(__WXMSW__) # include // needed for stat # include // stat #endif