Krolyxon
Commit de6b58a

Branches

Refs →

nsxivde6b58a

Unified feature test macro requirements

Author
Bert
Date
2011-09-03 14:22 +0200
Parent
e2ea759
Commit
de6b58a3156e64963f5bf48fa446bfbf3bb9da3f

+10 −10

4 files changed

  1. M image.c +2 −2
  2. M options.c +4 −3
  3. M thumbs.c +2 −2
  4. M window.c +2 −3
M image.c View
@@ -16,8 +16,6 @@
1616 * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA.
1717 */
1818
19−#define _IMAGE_CONFIG
20−
2119 #include <unistd.h>
2220
2321 #ifdef HAVE_GIFLIB
@@ -30,6 +28,8 @@
3028 #include "image.h"
3129 #include "options.h"
3230 #include "util.h"
31+
32+#define _IMAGE_CONFIG
3333 #include "config.h"
3434
3535 enum { MIN_GIF_DELAY = 50 };
M options.c View
@@ -16,16 +16,17 @@
1616 * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA.
1717 */
1818
19−#define _XOPEN_SOURCE
20−#define _IMAGE_CONFIG
19+#define _POSIX_C_SOURCE 2 /* for getopt(3) */
20+#include <unistd.h>
2121
2222 #include <stdlib.h>
2323 #include <string.h>
2424 #include <stdio.h>
25−#include <unistd.h>
2625
2726 #include "options.h"
2827 #include "util.h"
28+
29+#define _IMAGE_CONFIG
2930 #include "config.h"
3031
3132 options_t _options;
M thumbs.c View
@@ -16,8 +16,6 @@
1616 * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA.
1717 */
1818
19−#define _THUMBS_CONFIG
20−
2119 #include <stdlib.h>
2220 #include <string.h>
2321 #include <sys/time.h>
@@ -27,6 +25,8 @@
2725
2826 #include "thumbs.h"
2927 #include "util.h"
28+
29+#define _THUMBS_CONFIG
3030 #include "config.h"
3131
3232 #ifdef __NetBSD__
M window.c View
@@ -16,16 +16,15 @@
1616 * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA.
1717 */
1818
19−#define _WINDOW_CONFIG
20−
2119 #include <string.h>
22−
2320 #include <X11/Xutil.h>
2421 #include <X11/cursorfont.h>
2522
2623 #include "options.h"
2724 #include "util.h"
2825 #include "window.h"
26+
27+#define _WINDOW_CONFIG
2928 #include "config.h"
3029
3130 static Cursor carrow;