summaryrefslogtreecommitdiffstats
path: root/Python/getopt.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-11 19:19:46 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-11 19:19:46 (GMT)
commit62bf108392ab71d290bae4231eeb0d5e99285410 (patch)
tree8186d5de66f00166686ef33d818e22944633d433 /Python/getopt.c
parent6976a52099937bd3e855e7c9b8e1d3c75584b7f6 (diff)
downloadcpython-62bf108392ab71d290bae4231eeb0d5e99285410.zip
cpython-62bf108392ab71d290bae4231eeb0d5e99285410.tar.gz
cpython-62bf108392ab71d290bae4231eeb0d5e99285410.tar.bz2
(Jack:) Don't define TRUE and FALSE if already defined.
Diffstat (limited to 'Python/getopt.c')
-rw-r--r--Python/getopt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/getopt.c b/Python/getopt.c
index c08f07f..80a00ef 100644
--- a/Python/getopt.c
+++ b/Python/getopt.c
@@ -28,9 +28,12 @@
#include <string.h>
#define bool int
+#ifndef TRUE
#define TRUE 1
+#endif
+#ifndef FALSE
#define FALSE 0
-
+#endif
bool opterr = TRUE; /* generate error messages */
int optind = 1; /* index into argv array */