Browse Source

Unified feature test macro requirements

master
Bert 13 years ago
parent
commit
de6b58a315
4 changed files with 10 additions and 10 deletions
  1. +2
    -2
      image.c
  2. +4
    -3
      options.c
  3. +2
    -2
      thumbs.c
  4. +2
    -3
      window.c

+ 2
- 2
image.c View File

@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA.
*/ */


#define _IMAGE_CONFIG

#include <unistd.h> #include <unistd.h>


#ifdef HAVE_GIFLIB #ifdef HAVE_GIFLIB
@@ -30,6 +28,8 @@
#include "image.h" #include "image.h"
#include "options.h" #include "options.h"
#include "util.h" #include "util.h"

#define _IMAGE_CONFIG
#include "config.h" #include "config.h"


enum { MIN_GIF_DELAY = 50 }; enum { MIN_GIF_DELAY = 50 };


+ 4
- 3
options.c View File

@@ -16,16 +16,17 @@
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA.
*/ */


#define _XOPEN_SOURCE
#define _IMAGE_CONFIG
#define _POSIX_C_SOURCE 2 /* for getopt(3) */
#include <unistd.h>


#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h>


#include "options.h" #include "options.h"
#include "util.h" #include "util.h"

#define _IMAGE_CONFIG
#include "config.h" #include "config.h"


options_t _options; options_t _options;


+ 2
- 2
thumbs.c View File

@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA.
*/ */


#define _THUMBS_CONFIG

#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/time.h> #include <sys/time.h>
@@ -27,6 +25,8 @@


#include "thumbs.h" #include "thumbs.h"
#include "util.h" #include "util.h"

#define _THUMBS_CONFIG
#include "config.h" #include "config.h"


#ifdef __NetBSD__ #ifdef __NetBSD__


+ 2
- 3
window.c View File

@@ -16,16 +16,15 @@
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA.
*/ */


#define _WINDOW_CONFIG

#include <string.h> #include <string.h>

#include <X11/Xutil.h> #include <X11/Xutil.h>
#include <X11/cursorfont.h> #include <X11/cursorfont.h>


#include "options.h" #include "options.h"
#include "util.h" #include "util.h"
#include "window.h" #include "window.h"

#define _WINDOW_CONFIG
#include "config.h" #include "config.h"


static Cursor carrow; static Cursor carrow;


Loading…
Cancel
Save