summaryrefslogtreecommitdiffhomepage
path: root/src/common.h
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-12-04 17:06:14 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-12-04 17:06:14 +0000
commit0a20bdd5b4ea957e108cbf43725349e2766bd1d1 (patch)
treec684ee0af28e0059fd7c7974775f10af5b4dc644 /src/common.h
parent02d7474a0952015971439fce2f24ee66ef0217a3 (diff)
Removed the "bool_t" type since it conflicts with the newer C standards.
The type was just replaced by "unsigned int" types.
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/common.h b/src/common.h
index 1489c51..b504ba3 100644
--- a/src/common.h
+++ b/src/common.h
@@ -1,4 +1,4 @@
-/* $Id: common.h,v 1.2 2002-05-26 18:49:19 rjkaes Exp $
+/* $Id: common.h,v 1.3 2002-12-04 17:06:13 rjkaes Exp $
*
* This file groups all the headers required throughout the tinyproxy
* system. All this information use to be in the "tinyproxy.h" header,
@@ -175,14 +175,16 @@
#define MAXLISTEN 1024 /* Max number of connections */
-/* Useful function macros */
-#define min(a,b) ((a) < (b) ? (a) : (b))
-#define max(a,b) ((a) > (b) ? (a) : (b))
+/* Define boolean values */
+#ifndef FALSE
+# define FALSE 0
+# define TRUE (!FALSE)
+#endif
-/* Make a new type: bool_t */
-typedef enum {
- FALSE = 0,
- TRUE = 1
-} bool_t;
+/* Useful function macros */
+#if !defined(min) || !defined(max)
+# define min(a,b) ((a) < (b) ? (a) : (b))
+# define max(a,b) ((a) > (b) ? (a) : (b))
+#endif
#endif