Fix building under clang-cl on windows, selectany cannot be used in the same way on it
This commit is contained in:
parent
b2b8cf2f50
commit
ec1cafb9f9
@ -50,11 +50,11 @@ THE SOFTWARE.
|
|||||||
# define CXXOPTS_NO_REGEX true
|
# define CXXOPTS_NO_REGEX true
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER) && !defined(__clang__)
|
||||||
#define CXXOPTS_LINKONCE_CONST __declspec(selectany)
|
#define CXXOPTS_LINKONCE_CONST __declspec(selectany) extern
|
||||||
#define CXXOPTS_LINKONCE __declspec(selectany)
|
#define CXXOPTS_LINKONCE __declspec(selectany) extern
|
||||||
#else
|
#else
|
||||||
#define CXXOPTS_LINKONCE_CONST const
|
#define CXXOPTS_LINKONCE_CONST
|
||||||
#define CXXOPTS_LINKONCE
|
#define CXXOPTS_LINKONCE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user