aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-01-17 22:17:56 +0000
committerJason Woodward2005-01-17 22:17:56 +0000
commit93dfa9f9038dfe155d56d565a670d20f99fbe4fc (patch)
tree10ba990bfe32fbbd1e08662f51995c8a4282050b /src
parentd6aecb1896add9873ff319b880d4b2968e4f19c5 (diff)
downloadslapt-get-93dfa9f9038dfe155d56d565a670d20f99fbe4fc.tar.gz
added ifndef before setting BOOL_T typedef so we don't use existing TRUE && FALSE constants
Diffstat (limited to 'src')
-rw-r--r--src/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 9d0e421..cb0a3f3 100644
--- a/src/common.h
+++ b/src/common.h
@@ -20,7 +20,11 @@
#define MAX_REGEX_PARTS 10
#define SLACK_BASE_SET_REGEX "^./slackware/a$"
+#ifndef TRUE
typedef enum { FALSE = 0, TRUE } BOOL_T;
+#else
+typedef enum { JFALSE = FALSE, JTRUE = TRUE } BOOL_T;
+#endif
typedef struct {
regex_t regex;