aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-09-12 19:28:02 +0200
committerBert <ber.t@gmx.com>2011-09-12 19:28:02 +0200
commitdad06c7561d6f0ca0ea8d7f104ade04ab0e051fd (patch)
treed2dd7b45aa80c926cc9b895c776c403b2366ea13 /options.c
parent32a65201bb2114790d98a73427fab80f41d94b97 (diff)
Much nicer handling of compile-time features
- *_SUPPORT enabled in config.h - XLIBS helper app prints lib flags needed for current settings
Diffstat (limited to 'options.c')
-rw-r--r--options.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/options.c b/options.c
index 13e1174..2a04071 100644
--- a/options.c
+++ b/options.c
@@ -17,6 +17,7 @@
*/
#define _POSIX_C_SOURCE 200112L
+#define _FEATURE_CONFIG
#define _IMAGE_CONFIG
#include <stdlib.h>
@@ -39,12 +40,12 @@ void print_usage() {
void print_version() {
printf("sxiv %s - Simple X Image Viewer\n", VERSION);
printf("Additional features included (+) or not (-): %s, %s\n",
-#ifdef EXIF_SUPPORT
+#if EXIF_SUPPORT
"+exif",
#else
"-exif",
#endif
-#ifdef GIF_SUPPORT
+#if GIF_SUPPORT
"+gif"
#else
"-gif"