summaryrefslogtreecommitdiffstats
path: root/thumbs.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 /thumbs.c
parent32a65201bb2114790d98a73427fab80f41d94b97 (diff)
downloadnsxiv-dad06c7561d6f0ca0ea8d7f104ade04ab0e051fd.tar.zst
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 'thumbs.c')
-rw-r--r--thumbs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/thumbs.c b/thumbs.c
index fa54576..85dd34f 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -17,6 +17,7 @@
*/
#define _POSIX_C_SOURCE 200112L
+#define _FEATURE_CONFIG
#define _THUMBS_CONFIG
#include <stdlib.h>
@@ -30,7 +31,7 @@
#include "util.h"
#include "config.h"
-#ifdef EXIF_SUPPORT
+#if EXIF_SUPPORT
void exif_auto_orientate(const fileinfo_t*);
#endif
@@ -252,7 +253,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file,
/* avoid unused-but-set-variable warning */
(void) fmt;
-#ifdef EXIF_SUPPORT
+#if EXIF_SUPPORT
if (!cache_hit && !strcmp(fmt, "jpeg"))
exif_auto_orientate(file);
#endif