From 07bc05b6dfedbdc3efd0d38db82e887a691b4e52 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 12 Jul 2007 03:14:49 +0000 Subject: [PATCH] Warn Visual C++ users if they have a stale configure generated SDL_config.h --- include/SDL_config.h.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/SDL_config.h.in b/include/SDL_config.h.in index a023ca14c..9d106aa9a 100644 --- a/include/SDL_config.h.in +++ b/include/SDL_config.h.in @@ -28,6 +28,11 @@ /* General platform specific identifiers */ #include "SDL_platform.h" +/* Make sure that this isn't included by Visual C++ */ +#ifdef _MSC_VER +#error You should copy include/SDL_config.h.default to include/SDL_config.h +#endif + /* C language features */ #undef const #undef inline