summaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-01-06 03:16:08 +0000
committerNick Mathewson <nickm@torproject.org>2008-01-06 03:16:08 +0000
commit6d58d80e78d9b6706bda502a9041351f4a619306 (patch)
treef5b0a15ed1e1f212de955e360b06661e47ac0c50 /src/common/compat.h
parent864d83059823bbd89c94dcff258f99977b17bcd6 (diff)
downloadtor-6d58d80e78d9b6706bda502a9041351f4a619306.tar.gz
tor-6d58d80e78d9b6706bda502a9041351f4a619306.zip
r17472@catbus: nickm | 2008-01-05 22:10:19 -0500
Another test for the increasingly bad check-spaces style checker to check: #else\n#if is almost a sure sign of a failure to use #elif. Fortunately, we only did that 3 times. svn:r13039
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index d92b06ac34..a94691d447 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -139,15 +139,13 @@ extern INLINE double U64_TO_DBL(uint64_t x) {
#ifdef __GNUC__
#define STMT_BEGIN (void) ({
#define STMT_END })
-#else
-#if defined(sun) || defined(__sun__)
+#elif defined(sun) || defined(__sun__)
#define STMT_BEGIN if (1) {
#define STMT_END } else STMT_NIL
#else
#define STMT_BEGIN do {
#define STMT_END } while (0)
#endif
-#endif
/* ===== String compatibility */
#ifdef MS_WINDOWS