Much nicer handling of compile-time features

- *_SUPPORT enabled in config.h
- XLIBS helper app prints lib flags needed for current settings
This commit is contained in:
Bert
2011-09-12 19:28:02 +02:00
parent 32a65201bb
commit dad06c7561
8 changed files with 76 additions and 60 deletions

View File

@ -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