Re: [Plib-devel] Converting unsupported texture image file formats on the fly
Brought to you by:
sjbaker
From: Melchior F. <mf...@us...> - 2007-10-02 07:00:01
|
* Melchior FRANZ -- Tuesday 02 October 2007: > * John F. Fay -- Tuesday 02 October 2007: > > Done ... see change set 2127. > > ssgLoadTexture.cxx: In function 'int fileMTimeCmp(const char*, const char*)': > ssgLoadTexture.cxx:243: error: aggregate '_stat buffer_in' has incomplete type and cannot be defined > ssgLoadTexture.cxx:243: error: aggregate '_stat buffer_out' has incomplete type and cannot be defined > > What's _stat?! OK, make it stat. _stat is apparently the braindead MS Windows variant. --- src/ssg/ssgLoadTexture.cxx (revision 2127) +++ src/ssg/ssgLoadTexture.cxx (working copy) @@ -239,10 +240,10 @@ // 1: fname_input older than fname_output // 0: stat error { - struct _stat buffer_in, buffer_out; #ifdef UL_WIN32 #define stat _stat #endif + struct stat buffer_in, buffer_out; if ( stat( fname_input, &buffer_in ) == 0 && stat( fname_output, &buffer_out ) == 0 ) return buffer_in.st_mtime > buffer_out.st_mtime ? -1 : 1; else m. |