Skip to content

Commit 62bf108

Browse files
committed
(Jack:) Don't define TRUE and FALSE if already defined.
1 parent 6976a52 commit 62bf108

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Python/getopt.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@
2828
#include <string.h>
2929

3030
#define bool int
31+
#ifndef TRUE
3132
#define TRUE 1
33+
#endif
34+
#ifndef FALSE
3235
#define FALSE 0
33-
36+
#endif
3437

3538
bool opterr = TRUE; /* generate error messages */
3639
int optind = 1; /* index into argv array */

0 commit comments

Comments
 (0)