mirror of
https://github.com/libjpeg-turbo/libjpeg-turbo.git
synced 2026-01-18 13:31:21 +01:00
Win: Don't use GCC/Clang visibility attribute
Symbols are hidden by default on Windows, so
__attribute__((visibility("hidden"))) produced a warning ("visibility
attribute not supported in this configuration; ignored") with certain
versions of MinGW if libjpeg-turbo was built without SIMD extensions.
This commit is contained in:
@@ -525,7 +525,7 @@ if(UNIX)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT MSVC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||
if(NOT WIN32)
|
||||
check_c_source_compiles("extern const int table[1]; const int __attribute__((visibility(\"hidden\"))) table[1] = { 0 }; int main(void) { return table[0]; }"
|
||||
HIDDEN_WORKS)
|
||||
if(HIDDEN_WORKS)
|
||||
|
||||
Reference in New Issue
Block a user