don't require c99

This commit is contained in:
Yuichi Nishiwaki 2015-01-26 22:50:26 +09:00
parent d8487f6bba
commit be29b69c0c
2 changed files with 3 additions and 9 deletions

View File

@ -14,11 +14,9 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib)
set(CMAKE_C_FLAGS "-O2 -Wall -Wextra")
set(CMAKE_C_FLAGS_DEBUG "-O0 -g -DDEBUG=1")
option(USE_C11_FEATURE "Enable c11 feature" OFF)
if(USE_C11_FEATURE)
add_definitions(-std=c11)
else()
add_definitions(-std=c99) # at least c99 is required
option(STRICT_C89_MODE "Strict c89 mode" OFF)
if(STRICT_C89_MODE)
add_definitions(-std=c89 -ansi -pedantic)
endif()
include_directories(extlib/benz/include)

View File

@ -39,10 +39,6 @@
/* #define GC_DEBUG 1 */
/* #define GC_DEBUG_DETAIL 1 */
#if __STDC_VERSION__ < 199901L
# error please activate c99 features
#endif
#ifndef PIC_DIRECT_THREADED_VM
# if defined(__GNUC__) || defined(__clang__)
# define PIC_DIRECT_THREADED_VM 1