nsxive574a6d
Removed feature test macro definitions from source files
+13 −21
7 files changed
- M commands.c +2 −3
- M image.c +2 −3
- M main.c +2 −3
- M options.c +2 −3
- M thumbs.c +2 −3
- M util.c +0 −2
- M window.c +3 −4
| @@ -16,9 +16,6 @@ | |||
| 16 | 16 | * along with sxiv. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | 17 | */ | |
| 18 | 18 | ||
| 19 | − | #define _POSIX_C_SOURCE 200112L | |
| 20 | − | #define _IMAGE_CONFIG | |
| 21 | − | ||
| 22 | 19 | #include <stdlib.h> | |
| 23 | 20 | #include <string.h> | |
| 24 | 21 | #include <unistd.h> | |
| @@ -29,6 +26,8 @@ | |||
| 29 | 26 | #include "options.h" | |
| 30 | 27 | #include "thumbs.h" | |
| 31 | 28 | #include "util.h" | |
| 29 | + | ||
| 30 | + | #define _IMAGE_CONFIG | |
| 32 | 31 | #include "config.h" | |
| 33 | 32 | ||
| 34 | 33 | void cleanup(void); | |
| @@ -16,9 +16,6 @@ | |||
| 16 | 16 | * along with sxiv. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | 17 | */ | |
| 18 | 18 | ||
| 19 | − | #define _POSIX_C_SOURCE 200112L | |
| 20 | − | #define _IMAGE_CONFIG | |
| 21 | − | ||
| 22 | 19 | #include <stdlib.h> | |
| 23 | 20 | #include <string.h> | |
| 24 | 21 | #include <sys/types.h> | |
| @@ -27,6 +24,8 @@ | |||
| 27 | 24 | #include "image.h" | |
| 28 | 25 | #include "options.h" | |
| 29 | 26 | #include "util.h" | |
| 27 | + | ||
| 28 | + | #define _IMAGE_CONFIG | |
| 30 | 29 | #include "config.h" | |
| 31 | 30 | ||
| 32 | 31 | #if HAVE_LIBEXIF | |
| @@ -16,9 +16,6 @@ | |||
| 16 | 16 | * along with sxiv. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | 17 | */ | |
| 18 | 18 | ||
| 19 | − | #define _POSIX_C_SOURCE 200112L | |
| 20 | − | #define _MAPPINGS_CONFIG | |
| 21 | − | ||
| 22 | 19 | #include <stdlib.h> | |
| 23 | 20 | #include <stdio.h> | |
| 24 | 21 | #include <stdarg.h> | |
| @@ -41,6 +38,8 @@ | |||
| 41 | 38 | #include "thumbs.h" | |
| 42 | 39 | #include "util.h" | |
| 43 | 40 | #include "window.h" | |
| 41 | + | ||
| 42 | + | #define _MAPPINGS_CONFIG | |
| 44 | 43 | #include "config.h" | |
| 45 | 44 | ||
| 46 | 45 | enum { | |
| @@ -16,9 +16,6 @@ | |||
| 16 | 16 | * along with sxiv. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | 17 | */ | |
| 18 | 18 | ||
| 19 | − | #define _POSIX_C_SOURCE 200112L | |
| 20 | − | #define _IMAGE_CONFIG | |
| 21 | − | ||
| 22 | 19 | #include <stdlib.h> | |
| 23 | 20 | #include <string.h> | |
| 24 | 21 | #include <stdio.h> | |
| @@ -26,6 +23,8 @@ | |||
| 26 | 23 | ||
| 27 | 24 | #include "options.h" | |
| 28 | 25 | #include "util.h" | |
| 26 | + | ||
| 27 | + | #define _IMAGE_CONFIG | |
| 29 | 28 | #include "config.h" | |
| 30 | 29 | ||
| 31 | 30 | options_t _options; | |
| @@ -16,9 +16,6 @@ | |||
| 16 | 16 | * along with sxiv. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | 17 | */ | |
| 18 | 18 | ||
| 19 | − | #define _POSIX_C_SOURCE 200112L | |
| 20 | − | #define _THUMBS_CONFIG | |
| 21 | − | ||
| 22 | 19 | #include <stdio.h> | |
| 23 | 20 | #include <stdlib.h> | |
| 24 | 21 | #include <string.h> | |
| @@ -29,6 +26,8 @@ | |||
| 29 | 26 | ||
| 30 | 27 | #include "thumbs.h" | |
| 31 | 28 | #include "util.h" | |
| 29 | + | ||
| 30 | + | #define _THUMBS_CONFIG | |
| 32 | 31 | #include "config.h" | |
| 33 | 32 | ||
| 34 | 33 | #if HAVE_LIBEXIF | |
| @@ -16,8 +16,6 @@ | |||
| 16 | 16 | * along with sxiv. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | 17 | */ | |
| 18 | 18 | ||
| 19 | − | #define _POSIX_C_SOURCE 200112L | |
| 20 | − | ||
| 21 | 19 | #include <stdlib.h> | |
| 22 | 20 | #include <string.h> | |
| 23 | 21 | #include <sys/types.h> | |
| @@ -16,9 +16,6 @@ | |||
| 16 | 16 | * along with sxiv. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | 17 | */ | |
| 18 | 18 | ||
| 19 | − | #define _POSIX_C_SOURCE 200112L | |
| 20 | − | #define _WINDOW_CONFIG | |
| 21 | − | ||
| 22 | 19 | #include <stdlib.h> | |
| 23 | 20 | #include <string.h> | |
| 24 | 21 | #include <locale.h> | |
| @@ -28,9 +25,11 @@ | |||
| 28 | 25 | #include "options.h" | |
| 29 | 26 | #include "util.h" | |
| 30 | 27 | #include "window.h" | |
| 31 | − | #include "config.h" | |
| 32 | 28 | #include "icon/data.h" | |
| 33 | 29 | ||
| 30 | + | #define _WINDOW_CONFIG | |
| 31 | + | #include "config.h" | |
| 32 | + | ||
| 34 | 33 | enum { | |
| 35 | 34 | H_TEXT_PAD = 5, | |
| 36 | 35 | V_TEXT_PAD = 1 | |