summaryrefslogtreecommitdiff
path: root/Python/getopt.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-11 19:19:46 +0000
committerGuido van Rossum <guido@python.org>1997-04-11 19:19:46 +0000
commitcb14675bcdfeba6eb5d2d21beae707a07fdb88f7 (patch)
treeee7e4e5b3e708a3ce3e71cef21c64d9bb9695d5b /Python/getopt.c
parent18f2301f061c89c9f65ef1d4f9ad5b68c45f7731 (diff)
downloadcpython-cb14675bcdfeba6eb5d2d21beae707a07fdb88f7.tar.gz
(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 c08f07fa03..80a00ef8bc 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 */