aboutsummaryrefslogtreecommitdiffstats
path: root/globals.h
diff options
context:
space:
mode:
authorLaurent Deniel <laurent.deniel@free.fr>1999-09-12 14:34:36 +0000
committerLaurent Deniel <laurent.deniel@free.fr>1999-09-12 14:34:36 +0000
commit35d5e37a82ece5fe0bf4d47e0bb5dbcf8362961c (patch)
tree3ce23e7dd1758edb0af23b00dc86f9e4891fffc4 /globals.h
parenta8dc5a1a0cd5b769ba8b7faeb666a64b41bfb8d4 (diff)
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 'globals.h')
-rw-r--r--globals.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/globals.h b/globals.h
index e741ebb..352281c 100644
--- a/globals.h
+++ b/globals.h
@@ -1,7 +1,7 @@
/* globals.h
* Global defines, etc.
*
- * $Id: globals.h,v 1.3 1999/09/10 07:19:40 guy Exp $
+ * $Id: globals.h,v 1.4 1999/09/12 14:34:18 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -60,22 +60,22 @@
/* Byte ordering */
#ifndef BYTE_ORDER
- #define LITTLE_ENDIAN 4321
- #define BIG_ENDIAN 1234
- #ifdef WORDS_BIGENDIAN
- #define BYTE_ORDER BIG_ENDIAN
- #else
- #define BYTE_ORDER LITTLE_ENDIAN
- #endif
+# define LITTLE_ENDIAN 4321
+# define BIG_ENDIAN 1234
+# ifdef WORDS_BIGENDIAN
+# define BYTE_ORDER BIG_ENDIAN
+# else
+# define BYTE_ORDER LITTLE_ENDIAN
+# endif
#endif
/* From the K&R book, p. 89 */
#ifndef MAX
- #define MAX(x, y) ((x) > (y) ? (x) : (y))
+# define MAX(x, y) ((x) > (y) ? (x) : (y))
#endif
#ifndef MIN
- #define MIN(x, y) ((x) < (y) ? (x) : (y))
+# define MIN(x, y) ((x) < (y) ? (x) : (y))
#endif
extern FILE *data_out_file;