From abcc07d57821d5d5cf6d4e04b41a9485f1ba2df6 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Wed, 14 Apr 2010 09:12:31 +0200 Subject: win32: Refuse to be built by MinGW compiler unless platform MINGW32 is selected --- include/platform.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/platform.h b/include/platform.h index f87add552..221fbcb07 100644 --- a/include/platform.h +++ b/include/platform.h @@ -7,6 +7,10 @@ #ifndef BB_PLATFORM_H #define BB_PLATFORM_H 1 +#if defined(__MINGW32__) && !ENABLE_PLATFORM_MINGW32 +# error "You must select target platform MS Windows, or it won't build" +#endif + /* Assume all these functions exist by default. Platforms where it is not * true will #undef them below. */ -- cgit v1.2.3-55-g6feb