Browse Source

Fix CMake tests for enforced strict prototypes.

tags/json-c-0.14-20200419
Björn Esser 5 years ago
parent
commit
053eaa61d7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      CMakeLists.txt

+ 2
- 2
CMakeLists.txt View File

@@ -260,7 +260,7 @@ if (NOT ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC"))
/* uClibc toolchains without threading barf when _REENTRANT is defined */
#define _REENTRANT 1
#include <sys/types.h>
int main ()
int main (void)
{
return 0;
}
@@ -276,7 +276,7 @@ if (NOT ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC"))
list(APPEND CMAKE_REQUIRED_LIBRARIES "-Wl,-Bsymbolic-functions")
check_c_source_compiles(
[=[
int main ()
int main (void)
{
return 0;
}


Loading…
Cancel
Save