Warn Visual C++ users if they have a stale configure generated SDL_config.h
authorSam Lantinga <slouken@libsdl.org>
Thu, 12 Jul 2007 03:14:49 +0000
changeset 21752590d4e5fb89
parent 2174 8f37b91f2e3e
child 2176 cbe06fa842cd
Warn Visual C++ users if they have a stale configure generated SDL_config.h
include/SDL_config.h.in
     1.1 --- a/include/SDL_config.h.in	Wed Jul 11 14:52:13 2007 +0000
     1.2 +++ b/include/SDL_config.h.in	Thu Jul 12 03:14:49 2007 +0000
     1.3 @@ -28,6 +28,11 @@
     1.4  /* General platform specific identifiers */
     1.5  #include "SDL_platform.h"
     1.6  
     1.7 +/* Make sure that this isn't included by Visual C++ */
     1.8 +#ifdef _MSC_VER
     1.9 +#error You should copy include/SDL_config.h.default to include/SDL_config.h
    1.10 +#endif
    1.11 +
    1.12  /* C language features */
    1.13  #undef const
    1.14  #undef inline