Fix possible precedence problems.

This commit is contained in:
Andreas Schneider 2009-03-27 00:00:49 +01:00
parent 5d84518f00
commit 7d0393338c

View file

@ -41,7 +41,7 @@ extern "C" {
#define CSYNC_TOSTRING(s) #s #define CSYNC_TOSTRING(s) #s
/* csync version macros */ /* csync version macros */
#define CSYNC_VERSION_INT(a, b, c) (a << 16 | b << 8 | c) #define CSYNC_VERSION_INT(a, b, c) ((a) << 16 | (b) << 8 | (c))
#define CSYNC_VERSION_DOT(a, b, c) a ##.## b ##.## c #define CSYNC_VERSION_DOT(a, b, c) a ##.## b ##.## c
#define CSYNC_VERSION(a, b, c) CSYNC_VERSION_DOT(a, b, c) #define CSYNC_VERSION(a, b, c) CSYNC_VERSION_DOT(a, b, c)