diff options
author | Laurent Deniel <laurent.deniel@free.fr> | 1999-09-12 14:34:36 +0000 |
---|---|---|
committer | Laurent Deniel <laurent.deniel@free.fr> | 1999-09-12 14:34:36 +0000 |
commit | 35d5e37a82ece5fe0bf4d47e0bb5dbcf8362961c (patch) | |
tree | 3ce23e7dd1758edb0af23b00dc86f9e4891fffc4 /packet-atalk.c | |
parent | a8dc5a1a0cd5b769ba8b7faeb666a64b41bfb8d4 (diff) | |
download | wireshark-35d5e37a82ece5fe0bf4d47e0bb5dbcf8362961c.tar.gz wireshark-35d5e37a82ece5fe0bf4d47e0bb5dbcf8362961c.tar.bz2 wireshark-35d5e37a82ece5fe0bf4d47e0bb5dbcf8362961c.zip |
Some old CPP or tools that take C code in input do
not like #preprocessor_macros that do not start at
the first column.
So write:
#ifdef FOO
# include <dummy1.h>
# define DUMMY 1
#else
# include <dummy2.h>
# define DUMMY 2
#endif
instead of
#ifdef FOO
#include <dummy1.h>
#define DUMMY 1
#else
#include <dummy2.h>
#define DUMMY 2
#endif
svn path=/trunk/; revision=668
Diffstat (limited to 'packet-atalk.c')
-rw-r--r-- | packet-atalk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-atalk.c b/packet-atalk.c index 3e1237f3fd..61380d5157 100644 --- a/packet-atalk.c +++ b/packet-atalk.c @@ -39,12 +39,12 @@ static int proto_ddp = -1; /* P = Padding, H = Hops, L = Len */ #if BYTE_ORDER == BIG_ENDIAN /* PPHHHHLL LLLLLLLL */ - #define ddp_hops(x) ( ( x >> 10) & 0x3C ) - #define ddp_len(x) ( x & 0x03ff ) +# define ddp_hops(x) ( ( x >> 10) & 0x3C ) +# define ddp_len(x) ( x & 0x03ff ) #else /* LLLLLLLL PPHHHHLL*/ - #define ddp_hops(x) ( x & 0x3C ) - #define ddp_len(x) ( ntohs(x) & 0x03ff ) +# define ddp_hops(x) ( x & 0x3C ) +# define ddp_len(x) ( ntohs(x) & 0x03ff ) #endif typedef struct _e_ddp { guint16 hops_len; /* combines pad, hops, and len */ |