1 /*
2  * Seven Kingdoms: Ancient Adversaries
3  *
4  * Copyright 2015 Jesse Allen
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 //Filename    : gettext.h
22 //Description : Wrapper to GNU gettext convenience header
23 
24 #ifndef __GETTEXT_H_WRAPPER
25 #define __GETTEXT_H_WRAPPER
26 
27 // gettext-gnu.h won't define LC_MESSAGES when !defined ENABLE_NLS (happens
28 // when skipping libintl.h) but tries to use LC_MESSAGES anyway.
29 // gettext-gnu.h assumes we have a good locale.h, but that is not always the
30 // case.
31 #if (! defined ENABLE_NLS && ! defined LC_MESSAGES)
32   #include <locale.h>
33   #if (! defined LC_MESSAGES)
34     #define LC_MESSAGES 1729
35   #endif
36 #endif
37 
38 #include <c99_printf.h>
39 #include "gettext-gnu.h"
40 
41 #define _(String) gettext(String)
42 #define N_(String) gettext_noop(String)
43 
44 #endif
45