From dad06c7561d6f0ca0ea8d7f104ade04ab0e051fd Mon Sep 17 00:00:00 2001 From: Bert Date: Mon, 12 Sep 2011 19:28:02 +0200 Subject: Much nicer handling of compile-time features - *_SUPPORT enabled in config.h - XLIBS helper app prints lib flags needed for current settings --- options.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'options.c') 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 @@ -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" -- cgit v1.2.3-54-g00ecf