mirror of
https://github.com/json-c/json-c.git
synced 2026-04-05 13:29:06 +08:00
Fix CMake tests for enforced strict prototypes.
This commit is contained in:
@@ -260,7 +260,7 @@ if (NOT ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC"))
|
|||||||
/* uClibc toolchains without threading barf when _REENTRANT is defined */
|
/* uClibc toolchains without threading barf when _REENTRANT is defined */
|
||||||
#define _REENTRANT 1
|
#define _REENTRANT 1
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
int main ()
|
int main (void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -276,7 +276,7 @@ if (NOT ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC"))
|
|||||||
list(APPEND CMAKE_REQUIRED_LIBRARIES "-Wl,-Bsymbolic-functions")
|
list(APPEND CMAKE_REQUIRED_LIBRARIES "-Wl,-Bsymbolic-functions")
|
||||||
check_c_source_compiles(
|
check_c_source_compiles(
|
||||||
[=[
|
[=[
|
||||||
int main ()
|
int main (void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user