nsxivcd929ea
Fixed issue #73
+7 −3
4 files changed
| @@ -4,7 +4,7 @@ PREFIX = /usr/local | |||
| 4 | 4 | MANPREFIX = $(PREFIX)/share/man | |
| 5 | 5 | ||
| 6 | 6 | CC = gcc | |
| 7 | − | CFLAGS = -ansi -Wall -pedantic -O2 -I$(PREFIX) | |
| 7 | + | CFLAGS = -Wall -pedantic -O2 -I$(PREFIX) | |
| 8 | 8 | LDFLAGS = -L$(PREFIX) | |
| 9 | 9 | LIBS = -lX11 -lImlib2 -lgif | |
| 10 | 10 | ||
| @@ -29,11 +29,11 @@ | |||
| 29 | 29 | #include <X11/Xutil.h> | |
| 30 | 30 | #include <X11/keysym.h> | |
| 31 | 31 | ||
| 32 | + | #include "types.h" | |
| 32 | 33 | #include "commands.h" | |
| 33 | 34 | #include "image.h" | |
| 34 | 35 | #include "options.h" | |
| 35 | 36 | #include "thumbs.h" | |
| 36 | − | #include "types.h" | |
| 37 | 37 | #include "util.h" | |
| 38 | 38 | #include "window.h" | |
| 39 | 39 | #include "config.h" | |
| @@ -19,8 +19,8 @@ | |||
| 19 | 19 | #ifndef OPTIONS_H | |
| 20 | 20 | #define OPTIONS_H | |
| 21 | 21 | ||
| 22 | − | #include "image.h" | |
| 23 | 22 | #include "types.h" | |
| 23 | + | #include "image.h" | |
| 24 | 24 | ||
| 25 | 25 | typedef struct { | |
| 26 | 26 | /* file list: */ | |
| @@ -1,6 +1,10 @@ | |||
| 1 | 1 | #ifndef TYPES_H | |
| 2 | 2 | #define TYPES_H | |
| 3 | 3 | ||
| 4 | + | #undef bool | |
| 5 | + | #undef false | |
| 6 | + | #undef true | |
| 7 | + | ||
| 4 | 8 | typedef enum { | |
| 5 | 9 | false, | |
| 6 | 10 | true | |