fix possible undef ref when gettext is disabled or not installed

SVN revision: 59997
mpdule-0.18
Vincent Torri 11 years ago
parent 9de9a02213
commit 9c5e44850d
  1. 11
      src/e_mod_main.h

@ -1,8 +1,15 @@
#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 RESOLUTION_MINUTE 0
#define RESOLUTION_SECOND 1

Loading…
Cancel
Save