Re: [Plib-devel] Converting unsupported texture image file formatson the fly
Brought to you by:
sjbaker
From: Fay J. F Dr C. U. 46 S. <joh...@eg...> - 2007-10-02 12:55:16
|
Aaaarrrgh! It's probably called "stat" in *nix. I'll get onto it tonight if nobody else gets to it first. John F. Fay Technical Fellow Jacobs Technology TEAS Group 850-883-1294=20 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Melchior FRANZ Sent: Tuesday, October 02, 2007 2:00 AM To: pli...@li... Subject: Re: [Plib-devel] Converting unsupported texture image file formatson the fly * Melchior FRANZ -- Tuesday 02 October 2007: > * John F. Fay -- Tuesday 02 October 2007: > > Done ... see change set 2127. >=20 > 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 >=20 > 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 ) =3D=3D 0 && stat( fname_output, &buffer_out ) =3D=3D 0 ) return buffer_in.st_mtime > buffer_out.st_mtime ? -1 : 1; else m. ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |