summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/compat.h3
-rw-r--r--src/win32/orconfig.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index d2944e6f48..fa071e5558 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -136,8 +136,7 @@ extern INLINE double U64_TO_DBL(uint64_t x) {
#define DBL_TO_U64(x) ((uint64_t) (x))
#endif
-#if defined(_MSC_VER)
-/* XXXX024 we should instead have a more general check for "Is enum signed?"*/
+#ifdef ENUM_VALS_ARE_SIGNED
#define ENUM_BF(t) unsigned
#else
/** Wrapper for having a bitfield of an enumerated type. Where possible, we
diff --git a/src/win32/orconfig.h b/src/win32/orconfig.h
index 4312d9fbe5..f5d5cf4460 100644
--- a/src/win32/orconfig.h
+++ b/src/win32/orconfig.h
@@ -256,3 +256,4 @@
#define CURVE25519_ENABLED
#define USE_CURVE25519_DONNA
+#define ENUM_VALS_ARE_SIGNED 1