don't require c99
This commit is contained in:
parent
d8487f6bba
commit
be29b69c0c
|
@ -14,11 +14,9 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib)
|
||||||
set(CMAKE_C_FLAGS "-O2 -Wall -Wextra")
|
set(CMAKE_C_FLAGS "-O2 -Wall -Wextra")
|
||||||
set(CMAKE_C_FLAGS_DEBUG "-O0 -g -DDEBUG=1")
|
set(CMAKE_C_FLAGS_DEBUG "-O0 -g -DDEBUG=1")
|
||||||
|
|
||||||
option(USE_C11_FEATURE "Enable c11 feature" OFF)
|
option(STRICT_C89_MODE "Strict c89 mode" OFF)
|
||||||
if(USE_C11_FEATURE)
|
if(STRICT_C89_MODE)
|
||||||
add_definitions(-std=c11)
|
add_definitions(-std=c89 -ansi -pedantic)
|
||||||
else()
|
|
||||||
add_definitions(-std=c99) # at least c99 is required
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(extlib/benz/include)
|
include_directories(extlib/benz/include)
|
||||||
|
|
|
@ -39,10 +39,6 @@
|
||||||
/* #define GC_DEBUG 1 */
|
/* #define GC_DEBUG 1 */
|
||||||
/* #define GC_DEBUG_DETAIL 1 */
|
/* #define GC_DEBUG_DETAIL 1 */
|
||||||
|
|
||||||
#if __STDC_VERSION__ < 199901L
|
|
||||||
# error please activate c99 features
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef PIC_DIRECT_THREADED_VM
|
#ifndef PIC_DIRECT_THREADED_VM
|
||||||
# if defined(__GNUC__) || defined(__clang__)
|
# if defined(__GNUC__) || defined(__clang__)
|
||||||
# define PIC_DIRECT_THREADED_VM 1
|
# define PIC_DIRECT_THREADED_VM 1
|
||||||
|
|
Loading…
Reference in New Issue