Added precompiled header support for Visual Studio and Xcode (#6710)

Fixes https://github.com/libsdl-org/SDL/issues/6704
This commit is contained in:
Sam Lantinga 2022-11-29 18:34:15 -08:00 committed by GitHub
parent 6ca7212b75
commit c5790359fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
742 changed files with 1139 additions and 768 deletions

View file

@ -26,6 +26,11 @@
#define _GNU_SOURCE
#endif
/* Need this so Linux systems define fseek64o, ftell64o and off64_t */
#ifndef _LARGEFILE64_SOURCE
#define _LARGEFILE64_SOURCE
#endif
/* This is for a variable-length array at the end of a struct:
struct x { int y; char z[SDL_VARIABLE_LENGTH_ARRAY]; };
Use this because GCC 2 needs different magic than other compilers. */