Remove the unused ALIGN macro
This commit is contained in:
parent
d9d9e70ed8
commit
a7be531049
@ -111,7 +111,6 @@ SET(LIB_REVISION "1")
|
||||
SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}.${LIB_REVISION}")
|
||||
|
||||
SET(EXPORT_DECL "")
|
||||
SET(ALIGN_DECL "")
|
||||
|
||||
|
||||
CHECK_TYPE_SIZE("long" SIZEOF_LONG)
|
||||
@ -323,11 +322,6 @@ ENDIF()
|
||||
# Set visibility/export options if available
|
||||
IF(WIN32)
|
||||
SET(EXPORT_DECL "__declspec(dllexport)")
|
||||
IF(NOT MINGW)
|
||||
SET(ALIGN_DECL "__declspec(align(x))")
|
||||
ELSE()
|
||||
SET(ALIGN_DECL "__declspec(aligned(x))")
|
||||
ENDIF()
|
||||
ELSE()
|
||||
SET(OLD_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
|
||||
# Yes GCC, really don't accept visibility modes you don't support
|
||||
@ -352,12 +346,6 @@ ELSE()
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
CHECK_C_SOURCE_COMPILES("int foo __attribute__((aligned(16)));
|
||||
int main() {return 0;}" HAVE_ATTRIBUTE_ALIGNED)
|
||||
IF(HAVE_ATTRIBUTE_ALIGNED)
|
||||
SET(ALIGN_DECL "__attribute__((aligned(x)))")
|
||||
ENDIF()
|
||||
|
||||
SET(CMAKE_REQUIRED_FLAGS "${OLD_REQUIRED_FLAGS}")
|
||||
ENDIF()
|
||||
|
||||
|
@ -2,9 +2,6 @@
|
||||
#define AL_API ${EXPORT_DECL}
|
||||
#define ALC_API ${EXPORT_DECL}
|
||||
|
||||
/* Define any available alignment declaration */
|
||||
#define ALIGN(x) ${ALIGN_DECL}
|
||||
|
||||
/* Define a restrict macro for non-aliased pointers */
|
||||
#define RESTRICT ${RESTRICT_DECL}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user