diff options
Diffstat (limited to 'src/base/main.h')
| -rw-r--r-- | src/base/main.h | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/src/base/main.h b/src/base/main.h index 5fbd81a..cfa4ee0 100644 --- a/src/base/main.h +++ b/src/base/main.h @@ -1,24 +1,28 @@ #ifndef MAIN_H + #define MAIN_H + #define WINDOW_SIZE_X 800 + #define WINDOW_SIZE_Y 600 +#ifdef NLS + #define _(text) gettext(text) +#else + #define _(text) (text) +#endif -#define MAIN_H - -#include "../../config.h" - -#include "bool.h" -#include "string_length.h" -#include "path.h" - -// screen resolution -#define WINDOW_SIZE_X 800 -#define WINDOW_SIZE_Y 600 - -extern char* getParam(char *s); -extern char* getParamElse(char *s1, char *s2); -extern bool_t isParamFlag(char *s); -extern char *getString(int n); -extern int* newInt(int x); -extern void accessExistFile(const char *s); -extern int tryExistFile (const char *s); +#ifdef NLS + #include <libintl.h> + #include <locale.h> +#endif + #include "../../config.h" + #include "bool.h" + #include "string_length.h" + #include "path.h" + extern char* getParam(char *s); + extern char* getParamElse(char *s1, char *s2); + extern bool_t isParamFlag(char *s); + extern char *getString(int n); + extern int* newInt(int x); + extern void accessExistFile(const char *s); + extern int tryExistFile (const char *s); #endif |