diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-14 09:12:31 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-19 18:35:30 +0200 |
commit | cfb54305180d7ef1c0a34fee9b4e4b7a94c868bf (patch) | |
tree | e3b21bdf17573334a5f2d01e69e42411f9224ae5 | |
parent | 952bd42ad540b600e7e4b7a54ff718f003891996 (diff) | |
download | busybox-w32-cfb54305180d7ef1c0a34fee9b4e4b7a94c868bf.tar.gz busybox-w32-cfb54305180d7ef1c0a34fee9b4e4b7a94c868bf.tar.bz2 busybox-w32-cfb54305180d7ef1c0a34fee9b4e4b7a94c868bf.zip |
win32: Refuse to be built by MinGW compiler unless platform MINGW32 is selected
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
-rw-r--r-- | include/platform.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ | |||
7 | #ifndef BB_PLATFORM_H | 7 | #ifndef BB_PLATFORM_H |
8 | #define BB_PLATFORM_H 1 | 8 | #define BB_PLATFORM_H 1 |
9 | 9 | ||
10 | #if defined(__MINGW32__) && !ENABLE_PLATFORM_MINGW32 | ||
11 | # error "You must select target platform MS Windows, or it won't build" | ||
12 | #endif | ||
13 | |||
10 | /* Assume all these functions exist by default. Platforms where it is not | 14 | /* Assume all these functions exist by default. Platforms where it is not |
11 | * true will #undef them below. | 15 | * true will #undef them below. |
12 | */ | 16 | */ |