3rdparty(webp): enable -std=c99

This commit is contained in:
Alexander Alekhin 2019-06-03 18:25:34 +00:00
parent d58f9ae824
commit f1b6228d4f

View File

@ -21,6 +21,11 @@ if(ANDROID AND ARMEABI_V7A AND NOT NEON)
endforeach()
endif()
# FIX for quant.h - requires C99 for() loops
ocv_check_flag_support(C "-std=c99" _varname "${CMAKE_C_FLAGS}")
if(${_varname})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
endif()
# ----------------------------------------------------------------------------------