aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-02-08 16:48:50 -0500
committerNick Mathewson <nickm@torproject.org>2013-02-08 16:48:50 -0500
commit561e9becbd1f896c31112ab2dfd56fe7badc9382 (patch)
treeb3b26964560a5b724999b85e29887582d9898faf /src/common
parentfd1c2a13e7558086732288eb1a4f52aef2edeb2f (diff)
parent41200b47709bcdaf6f3a66e8453b3d852bd8d2a6 (diff)
downloadtor-561e9becbd1f896c31112ab2dfd56fe7badc9382.tar
tor-561e9becbd1f896c31112ab2dfd56fe7badc9382.tar.gz
Merge remote-tracking branch 'public/signof_enum'
Diffstat (limited to 'src/common')
-rw-r--r--src/common/compat.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index d2944e6f4..fa071e555 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