Don't include gettext headers when NLS is disabled.

This commit is contained in:
Jon Lund Steffensen
2010-05-24 18:24:56 +02:00
parent 6f044ccad3
commit f8c3b9839d
7 changed files with 67 additions and 43 deletions
-2
View File
@@ -17,8 +17,6 @@
Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com>
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
+6 -2
View File
@@ -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>
+1 -1
View File
@@ -260,7 +260,7 @@ print_help(const char *program_name)
fputs("\n", stdout);
/* TRANSLATORS: help output 6 */
printf("Please report bugs to <%s>\n", PACKAGE_BUGREPORT);
printf(_("Please report bugs to <%s>\n"), PACKAGE_BUGREPORT);
}
static void
+6 -2
View File
@@ -21,8 +21,12 @@
#include <stdio.h>
#include <stdint.h>
#include <libintl.h>
#define _(s) gettext(s)
#ifdef ENABLE_NLS
# include <libintl.h>
# define _(s) gettext(s)
#else
# define _(s) s
#endif
#include <X11/Xlib.h>
#include <X11/extensions/xf86vmode.h>