aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorJason Woodward2005-01-17 23:53:31 +0000
committerJason Woodward2005-01-17 23:53:31 +0000
commit1dff5553d74a8e8e9a14710111720c9918210dfb (patch)
treee8149aa308debe1577d9984d4529d6179ce58779 /src/common.h
parent93dfa9f9038dfe155d56d565a670d20f99fbe4fc (diff)
downloadslapt-get-1dff5553d74a8e8e9a14710111720c9918210dfb.tar.gz
updated typedef for BOOL_T
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h
index cb0a3f3..1fab134 100644
--- a/src/common.h
+++ b/src/common.h
@@ -20,11 +20,13 @@
#define MAX_REGEX_PARTS 10
#define SLACK_BASE_SET_REGEX "^./slackware/a$"
-#ifndef TRUE
-typedef enum { FALSE = 0, TRUE } BOOL_T;
+typedef enum {
+#if !defined(FALSE) && !defined(TRUE)
+FALSE = 0, TRUE
#else
-typedef enum { JFALSE = FALSE, JTRUE = TRUE } BOOL_T;
+JFALSE = FALSE, JTRUE = TRUE
#endif
+} BOOL_T;
typedef struct {
regex_t regex;