Skip to content

Commit 009b948

Browse files
Merge pull request #203 from mstorsjo/clang-selectany
Use __declspec(selectany) on any windows compiler, not only MSVC
2 parents eb931aa + 328e888 commit 009b948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amf/public/include/core/Platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
#endif // WIN32
132132

133133

134-
#if defined(_MSC_VER)
134+
#if defined(_WIN32)
135135
#define AMF_WEAK __declspec( selectany )
136136
#elif defined (__GNUC__) || defined (__GCC__) || defined(__clang__)//GCC or CLANG
137137
#define AMF_WEAK __attribute__((weak))

0 commit comments

Comments
 (0)