File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -119,11 +119,11 @@ if (MINGW)
119
119
add_definitions (-DLIBPLZMA_MINGW=1 )
120
120
message ("MinGW" )
121
121
122
- # CXX ignore private external function attributes. Always link .
123
- check_cxx_compiler_flag ("-Wno-attributes" WITH_WNO_ATTRIBUTES_CXX )
124
- if (WITH_WNO_ATTRIBUTES_CXX )
125
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes" )
126
- endif ()
122
+ # CXX ignore private external function attributes or unknown scoped attributes .
123
+ # check_cxx_compiler_flag("-Wno-attributes" WITH_WNO_ATTRIBUTES_CXX)
124
+ # if (WITH_WNO_ATTRIBUTES_CXX)
125
+ # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes")
126
+ # endif()
127
127
128
128
endif ()
129
129
Original file line number Diff line number Diff line change 152
152
# error "Configuration error: MinGW without posix."
153
153
#endif
154
154
155
+ #if defined(LIBPLZMA_MINGW )
156
+ # undef LIBPLZMA_C_API_PRIVATE
157
+ # define LIBPLZMA_C_API_PRIVATE (RETURN_TYPE ) LIBPLZMA_C_EXTERN LIBPLZMA_ATTRIB RETURN_TYPE
158
+ #endif
159
+
155
160
#if defined(__GNUC__ ) || defined(__clang__ )
156
161
# define LIBPLZMA_PACKED_ALIGNED_START (ALIGN )
157
162
# define LIBPLZMA_PACKED_ALIGNED_END (ALIGN ) __attribute__((packed, aligned(ALIGN)))
You can’t perform that action at this time.
0 commit comments