Browse Source

LCC: Make CMake build without warnings on LCC 1.21

makise-homura 1 year ago
parent
commit
9dd0ab9c88
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Source/cmConfigure.cmake.h.in

+ 6 - 1
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