Fix build on SL6.9. Fix #3603.

This commit is contained in:
bl 2019-08-01 05:43:55 +02:00
parent a8d19057b1
commit 45243cd009

View File

@ -67,6 +67,8 @@ endif()
check_c_compiler_flag("-std=gnu11" COMPILER_SUPPORTS_C11) check_c_compiler_flag("-std=gnu11" COMPILER_SUPPORTS_C11)
if(COMPILER_SUPPORTS_C11) if(COMPILER_SUPPORTS_C11)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11")
else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
endif() endif()
if(NOT MSVC) if(NOT MSVC)