Elm: fix compilation of codegen on Mac and formatting in elm_priv.h

SVN revision: 77220
This commit is contained in:
Vincent Torri 2012-09-30 07:15:30 +00:00
parent 5db89a0439
commit 9da7ce5abe
2 changed files with 21 additions and 15 deletions

View File

@ -18,6 +18,12 @@
#include <stdio.h>
#include <unistd.h>
#ifndef ENABLE_NLS
# ifndef libintl_setlocale
# define libintl_setlocale(c, l)
# endif
#endif
static int _log_dom;
#define DBG(...) EINA_LOG_DOM_DBG(_log_dom, __VA_ARGS__)
#define ERR(...) EINA_LOG_DOM_ERR(_log_dom, __VA_ARGS__)

View File

@ -59,22 +59,22 @@
#define DBG(...) EINA_LOG_DOM_DBG(_elm_log_dom, __VA_ARGS__)
#ifdef ENABLE_NLS
#include <libintl.h>
#define E_(string) _elm_dgettext(string)
# include <libintl.h>
# define E_(string) _elm_dgettext(string)
#else
#ifndef setlocale
#define setlocale(c, l)
#endif
#ifndef libintl_setlocale
#define libintl_setlocale(c, l)
#endif
#ifndef bindtextdomain
#define bindtextdomain(domain, dir)
#endif
#ifndef libintl_bindtextdomain
#define libintl_bindtextdomain(domain, dir)
#endif
#define E_(string) (string)
# ifndef setlocale
# define setlocale(c, l)
# endif
# ifndef libintl_setlocale
# define libintl_setlocale(c, l)
# endif
# ifndef bindtextdomain
# define bindtextdomain(domain, dir)
# endif
# ifndef libintl_bindtextdomain
# define libintl_bindtextdomain(domain, dir)
# endif
# define E_(string) (string)
#endif
#define N_(string) (string)