aboutsummaryrefslogtreecommitdiffstats
path: root/src/randr.c
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2010-05-24 18:24:56 +0200
committerJon Lund Steffensen <jonlst@gmail.com>2010-05-24 18:24:56 +0200
commitf8c3b9839dfee51da1a7bef87bf92bcaf169c0d6 (patch)
tree1311542befe0f55943577b2629fc6625099b7e6f /src/randr.c
parentUse gamma_method_spec_t struct to control and iterate through different (diff)
downloadredshift-ng-f8c3b9839dfee51da1a7bef87bf92bcaf169c0d6.tar.gz
redshift-ng-f8c3b9839dfee51da1a7bef87bf92bcaf169c0d6.tar.bz2
redshift-ng-f8c3b9839dfee51da1a7bef87bf92bcaf169c0d6.tar.xz
Don't include gettext headers when NLS is disabled.
Diffstat (limited to 'src/randr.c')
-rw-r--r--src/randr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/randr.c b/src/randr.c
index f401190..3ee0f42 100644
--- a/src/randr.c
+++ b/src/randr.c
@@ -21,8 +21,12 @@
#include <stdlib.h>
#include <string.h>
-#include <libintl.h>
-#define _(s) gettext(s)
+#ifdef ENABLE_NLS
+# include <libintl.h>
+# define _(s) gettext(s)
+#else
+# define _(s) s
+#endif
#include <xcb/xcb.h>
#include <xcb/randr.h>