rwops: Fixed 64-bit file i/o on QNX.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 15 Aug 2017 16:30:26 -0400
changeset 1130403d0ffb1f3dd
parent 11303 23000b73ce4e
child 11305 93ff3c6bff82
rwops: Fixed 64-bit file i/o on QNX.
src/file/SDL_rwops.c
     1.1 --- a/src/file/SDL_rwops.c	Mon Aug 14 23:45:06 2017 -0700
     1.2 +++ b/src/file/SDL_rwops.c	Tue Aug 15 16:30:26 2017 -0400
     1.3 @@ -18,8 +18,14 @@
     1.4       misrepresented as being the original software.
     1.5    3. This notice may not be removed or altered from any source distribution.
     1.6  */
     1.7 +
     1.8 +/* We won't get fseeko64 on QNX if _LARGEFILE64_SOURCE is defined, but the
     1.9 +   configure script knows the C runtime has it and enables it. */
    1.10 +#ifndef __QNXNTO__
    1.11  /* Need this so Linux systems define fseek64o, ftell64o and off64_t */
    1.12  #define _LARGEFILE64_SOURCE
    1.13 +#endif
    1.14 +
    1.15  #include "../SDL_internal.h"
    1.16  
    1.17  #if defined(__WIN32__)