Author: bgbnbigben Date: 2011-02-05 01:39:27 -0800 (Sat, 05 Feb 2011) New Revision: 8372 Log: Fixed a small janitorial #undef that causes a peculiar error with MSVS. This has been marked as a TODO....
Modified: trunk/fltk/filename.h Modified: trunk/fltk/filename.h =================================================================== --- trunk/fltk/filename.h 2011-02-05 08:58:32 UTC (rev 8371) +++ trunk/fltk/filename.h 2011-02-05 09:39:27 UTC (rev 8372) @@ -107,13 +107,13 @@ // To deal with Windows' Unicode chars, the "stat" struct has also been gratuitously changed // the stat struct to _stat. This needs to be set and unset accordingly. +// BS: It seems at the moment the MSVS compilers have a cry if stat is undefined after this definition +// and redefined later, thus I'm going to leave this in. This may need to be modified at a future date.... +// \todo clean up the #define stat _stat #if defined (_WIN32) && !defined (__CYGWIN__) # define stat _stat #endif FL_API int fltk_stat(const char* name, struct stat *buffer); -#ifdef _stat -# undef _stat -#endif FL_API int filename_absolute(char *to, int tolen, const char *from, const char* cwd=0); FL_API int filename_relative(char *to, int tolen, const char *from, const char* cwd=0); _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
