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-09-10 18:37:41 +1000 |
commit | abcc07d57821d5d5cf6d4e04b41a9485f1ba2df6 (patch) | |
tree | 59edf02379b88fe092be53534b5d3546042d8851 | |
parent | bf1899c5c39f289d4504720711bd62676b35cbc8 (diff) | |
download | busybox-w32-abcc07d57821d5d5cf6d4e04b41a9485f1ba2df6.tar.gz busybox-w32-abcc07d57821d5d5cf6d4e04b41a9485f1ba2df6.tar.bz2 busybox-w32-abcc07d57821d5d5cf6d4e04b41a9485f1ba2df6.zip |
win32: Refuse to be built by MinGW compiler unless platform MINGW32 is selected
-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 | */ |