cmake: Hack to get objective-C files to build with gnu99. (We need cmake upstream...
[vlc.git] / extras / buildsystem / cmake / include / config.cmake
index ee222b4..fc9ad52 100644 (file)
@@ -114,7 +114,7 @@ if(APPLE)
             "${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -undefined dynamic_lookup")
 
     set(SYS_DARWIN 1)
-
+    add_definitions(-std=gnu99) # Hack for obj-c files to be compiled with gnu99
     vlc_enable_modules(macosx minimal_macosx access_eyetv quartztext)
 
     vlc_find_frameworks(Cocoa Carbon OpenGL AGL IOKit Quicktime