Don't include gettext headers when NLS is disabled.
This commit is contained in:
@@ -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
@@ -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
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user