提交 47c33630 编写于 作者: D Dominik Brodowski

cpupower: make NLS truly optional

Loosely based on a patch for cpufrequtils, submittted by
Sergey Dryabzhinsky <sergey.dryabzhinsky@gmail.com> and
signed-off-by: NMatt Turner <mattst88@gmail.com>
Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
上级 63b37de1
......@@ -137,6 +137,7 @@ CFLAGS += -pipe
ifeq ($(strip $(NLS)),true)
INSTALL_NLS += install-gmo
COMPILE_NLS += create-gmo
CFLAGS += -DNLS
endif
ifeq ($(strip $(CPUFREQ_BENCH)),true)
......
......@@ -16,11 +16,20 @@
#include "helpers/bitmask.h"
/* Internationalization ****************************/
#ifdef NLS
#define _(String) gettext(String)
#ifndef gettext_noop
#define gettext_noop(String) String
#endif
#define N_(String) gettext_noop(String)
#else /* !NLS */
#define _(String) String
#define N_(String) String
#endif
/* Internationalization ****************************/
extern int run_as_root;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册