Visual C++ compilation fixes
This commit is contained in:
@@ -41,15 +41,15 @@ union ZoneOptionValue
|
||||
};
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define OPTION_DEFAULT_VALUE_UNSIGNED(x) { uint32_t(x) }
|
||||
#define OPTION_DEFAULT_VALUE_SIGNED(x) { uint32_t(x) }
|
||||
#define OPTION_DEFAULT_VALUE_BOOL(x) { uint32_t(x) }
|
||||
#define OPTION_DEFAULT_VALUE_STRING(...) { *((ZoneOptionValue *)(const char []) __VA_ARGS__) }
|
||||
#define OPTION_DEFAULT_VALUE_UNSIGNED(x) uint32_t(x)
|
||||
#define OPTION_DEFAULT_VALUE_SIGNED(x) uint32_t(x)
|
||||
#define OPTION_DEFAULT_VALUE_BOOL(x) uint32_t(x)
|
||||
#define OPTION_DEFAULT_VALUE_STRING(...) *(ZoneOptionValue *)(const char *)__VA_ARGS__
|
||||
#else
|
||||
#define OPTION_DEFAULT_VALUE_UNSIGNED(x) { .unsignedValue = (x) }
|
||||
#define OPTION_DEFAULT_VALUE_SIGNED(x) { .signedValue = (x) }
|
||||
#define OPTION_DEFAULT_VALUE_BOOL(x) { .boolValue = (x) }
|
||||
#define OPTION_DEFAULT_VALUE_STRING(...) { .stringValue = __VA_ARGS__}
|
||||
#define OPTION_DEFAULT_VALUE_STRING(...) { .stringValue = *(ZoneOptionValue *)(const char *)__VA_ARGS__ }
|
||||
#endif
|
||||
|
||||
struct ZoneOption
|
||||
|
||||
Reference in New Issue
Block a user