diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-11-12 13:25:17 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-12 13:25:17 -0500 |
commit | 2170171d84e30bc4b1b2565255bd978668c50e97 (patch) | |
tree | 772928dd947988e5ef8e9dcd11665d3f922d4f3b /src | |
parent | d85270e13c74bbfb9d2a2f2f7f73736a07b57046 (diff) | |
parent | 00f59098767766cc594c89837781c28a1ec67682 (diff) | |
download | tor-2170171d84e30bc4b1b2565255bd978668c50e97.tar.gz tor-2170171d84e30bc4b1b2565255bd978668c50e97.zip |
Merge branch 'ticket13172'
Diffstat (limited to 'src')
-rw-r--r-- | src/common/compat.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index f2eef5b6e7..7001361af3 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -203,6 +203,15 @@ extern INLINE double U64_TO_DBL(uint64_t x) { #define STMT_END } while (0) #endif +/* Some tools (like coccinelle) don't like to see operators as macro + * arguments. */ +#define OP_LT < +#define OP_GT > +#define OP_GE >= +#define OP_LE <= +#define OP_EQ == +#define OP_NE != + /* ===== String compatibility */ #ifdef _WIN32 /* Windows names string functions differently from most other platforms. */ |