Commit bf523119 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

cmake: Define HAVE_ATTRIBUTE_PACKED if needed.

parent 025edf95
...@@ -98,6 +98,10 @@ endif(CMAKE_BUILD_TYPE STREQUAL "Debug") ...@@ -98,6 +98,10 @@ endif(CMAKE_BUILD_TYPE STREQUAL "Debug")
set( HAVE_DYNAMIC_PLUGINS ${ENABLE_DYNAMIC_PLUGINS}) set( HAVE_DYNAMIC_PLUGINS ${ENABLE_DYNAMIC_PLUGINS})
set( LIBEXT ${CMAKE_SHARED_MODULE_SUFFIX}) 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 # Headers checks
########################################################### ###########################################################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment