fix possible undef ref when gettext is disabled or not installed

SVN revision: 59997
master
Vincent Torri 11 years ago
parent 67ce5235d1
commit ff308855b7
  1. 12
      src/e_mod_main.h

@ -1,9 +1,15 @@
#include <libintl.h>
#define D_(str) dgettext(PACKAGE, str)
#ifndef E_MOD_MAIN_H
#define E_MOD_MAIN_H
#ifdef ENABLE_NLS
# include <libintl.h>
# define D_(string) dgettext(PACKAGE, string)
#else
# define bindtextdomain(domain,dir)
# define bind_textdomain_codeset(domain,codeset)
# define D_(string) (string)
#endif
#define PRINT_LOTS_OF_DEBUG 0
typedef enum

Loading…
Cancel
Save