allow to build with i18n on on both windows and unix, ...
by not having a src/config.h
This commit is contained in:
parent
252ebcccc6
commit
2601d1a14f
6 changed files with 18 additions and 22 deletions
10
src/config.h
10
src/config.h
|
@ -1,10 +0,0 @@
|
|||
#ifndef CONFIG_H_INCLUDED
|
||||
#define CONFIG_H_INCLUDED
|
||||
|
||||
#define VERSION "0.8.2"
|
||||
#define WESNOTH_DEFAULT_SERVER "devsrv.wesnoth.org"
|
||||
#define PACKAGE "wesnoth"
|
||||
#define LOCALEDIR "libintl"
|
||||
|
||||
|
||||
#endif
|
|
@ -51,7 +51,7 @@
|
|||
#include <iostream>
|
||||
#include <set>
|
||||
|
||||
#include "config.h"
|
||||
#include "wesconfig.h"
|
||||
#include "config.hpp"
|
||||
#include "filesystem.hpp"
|
||||
#include "game_config.hpp"
|
||||
|
|
|
@ -55,11 +55,7 @@
|
|||
#include "widgets/button.hpp"
|
||||
#include "widgets/menu.hpp"
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#else
|
||||
# warning "This platform will need to define parameters like PACKAGE and LOCALEDIR"
|
||||
#endif
|
||||
#include "wesconfig.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
|
|
|
@ -11,9 +11,7 @@
|
|||
See the COPYING file for more details.
|
||||
*/
|
||||
#include "game_config.hpp"
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "wesconfig.h"
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
|
|
|
@ -25,9 +25,7 @@
|
|||
#include "widgets/button.hpp"
|
||||
#include "widgets/slider.hpp"
|
||||
#include "widgets/menu.hpp"
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "wesconfig.h"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
|
|
14
src/wesconfig.h
Normal file
14
src/wesconfig.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#ifndef WESCONFIG_H_INCLUDED
|
||||
#define WESCONFIG_H_INCLUDED
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#else
|
||||
# define VERSION "0.8.2"
|
||||
# define WESNOTH_DEFAULT_SERVER "devsrv.wesnoth.org"
|
||||
# define PACKAGE "wesnoth"
|
||||
# define LOCALEDIR "messages"
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Reference in a new issue