diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-07 16:29:32 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-07 16:30:32 -0500 |
commit | 41200b47709bcdaf6f3a66e8453b3d852bd8d2a6 (patch) | |
tree | 1d213ccaa9aa0e6a62c201d3d26dc4aa36db09d4 /src/common/compat.h | |
parent | 0e597471aff206460f02999d6ea9e1e3243ef945 (diff) | |
download | tor-41200b47709bcdaf6f3a66e8453b3d852bd8d2a6.tar tor-41200b47709bcdaf6f3a66e8453b3d852bd8d2a6.tar.gz |
Have autoconf check whether enums are signed.
Fixes bug 7727; fix on 0.2.4.10-alpha.
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 3 |
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 |