forked from old/legacy-imlib2
fix X_DISPLAY_MISSING redefined warnings when X is disabled
This is set up in config.h by configure, so avoid defining it again.
This commit is contained in:
parent
560a58e617
commit
cfa257c01f
|
@ -8,7 +8,9 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifndef X_DISPLAY_MISSING
|
||||||
#define X_DISPLAY_MISSING
|
#define X_DISPLAY_MISSING
|
||||||
|
#endif
|
||||||
#include <Imlib2.h>
|
#include <Imlib2.h>
|
||||||
|
|
||||||
#define PROG_NAME "imlib2_conv"
|
#define PROG_NAME "imlib2_conv"
|
||||||
|
|
|
@ -10,8 +10,10 @@
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
#include <X11/extensions/shape.h>
|
#include <X11/extensions/shape.h>
|
||||||
#else
|
#else
|
||||||
|
#ifndef X_DISPLAY_MISSING
|
||||||
#define X_DISPLAY_MISSING
|
#define X_DISPLAY_MISSING
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "Imlib2.h"
|
#include "Imlib2.h"
|
||||||
#include "blend.h"
|
#include "blend.h"
|
||||||
|
|
|
@ -5,8 +5,10 @@
|
||||||
#ifdef BUILD_X11
|
#ifdef BUILD_X11
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#else
|
#else
|
||||||
|
#ifndef X_DISPLAY_MISSING
|
||||||
#define X_DISPLAY_MISSING
|
#define X_DISPLAY_MISSING
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <Imlib2.h>
|
#include <Imlib2.h>
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,10 @@
|
||||||
#ifdef BUILD_X11
|
#ifdef BUILD_X11
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#else
|
#else
|
||||||
|
#ifndef X_DISPLAY_MISSING
|
||||||
#define X_DISPLAY_MISSING
|
#define X_DISPLAY_MISSING
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "dynamic_filters.h"
|
#include "dynamic_filters.h"
|
||||||
#include "image.h"
|
#include "image.h"
|
||||||
|
|
Loading…
Reference in New Issue