diff options
author | makise-homura <akemi_homura@kurisa.ch> | 2024-01-15 05:44:06 (GMT) |
---|---|---|
committer | makise-homura <akemi_homura@kurisa.ch> | 2024-01-16 19:12:07 (GMT) |
commit | 9dd0ab9c88490b1555e62a473341da695ae0b438 (patch) | |
tree | 2012ff8908557a6588921b44b736eabad6fd20de | |
parent | 1dbb31cea25adcfe9a11f1797ebcfdc11712c2b6 (diff) | |
download | CMake-9dd0ab9c88490b1555e62a473341da695ae0b438.zip CMake-9dd0ab9c88490b1555e62a473341da695ae0b438.tar.gz CMake-9dd0ab9c88490b1555e62a473341da695ae0b438.tar.bz2 |
LCC: Make CMake build without warnings on LCC 1.21
-rw-r--r-- | Source/cmConfigure.cmake.h.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmConfigure.cmake.h.in b/Source/cmConfigure.cmake.h.in index de74716..23e4846 100644 --- a/Source/cmConfigure.cmake.h.in +++ b/Source/cmConfigure.cmake.h.in @@ -14,8 +14,13 @@ #pragma warning(disable : 1572) /* floating-point equality test */ #endif -#if defined(__LCC__) && defined(__EDG__) && (__LCC__ == 123) +#if defined(__LCC__) && defined(__EDG__) +#if __LCC__ == 123 #pragma diag_suppress 2910 /* excess -Wunused-function in 1.23.x */ +#elif __LCC__ == 121 +#pragma diag_suppress 2727 /* excess -Wunused-function in 1.21.x */ +#include <limits.h> /* ..._MIN, ..._MAX constants */ +#endif #endif #cmakedefine HAVE_ENVIRON_NOT_REQUIRE_PROTOTYPE |