]> git.sesse.net Git - vlc/commitdiff
cmake: Define HAVE_ATTRIBUTE_PACKED if needed.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 4 May 2008 15:00:24 +0000 (17:00 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 4 May 2008 15:12:45 +0000 (17:12 +0200)
extras/buildsystem/cmake/include/config.cmake

index 920fad40e99504494f276943248a9d0f4968a273..d7f9fc2c6ae04136e267799ebd33ce312e133e94 100644 (file)
@@ -98,6 +98,10 @@ endif(CMAKE_BUILD_TYPE STREQUAL "Debug")
 set( HAVE_DYNAMIC_PLUGINS ${ENABLE_DYNAMIC_PLUGINS})
 set( LIBEXT ${CMAKE_SHARED_MODULE_SUFFIX})
 
+check_c_source_compiles(
+    "struct __attribute__((__packed__)) foo { int a; } b; int main(){return 0;}"
+    HAVE_ATTRIBUTE_PACKED)
+
 ###########################################################
 # Headers checks
 ###########################################################