cmake: Hack to get objective-C files to build with gnu99. (We need cmake upstream...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 5 Feb 2008 20:54:13 +0000 (20:54 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 5 Feb 2008 20:54:13 +0000 (20:54 +0000)
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