allow to build with i18n on on both windows and unix, ...

by not having a src/config.h
This commit is contained in:
Yann Dirson 2004-08-22 20:10:12 +00:00
parent 252ebcccc6
commit 2601d1a14f
6 changed files with 18 additions and 22 deletions

View file

@ -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

View file

@ -51,7 +51,7 @@
#include <iostream>
#include <set>
#include "config.h"
#include "wesconfig.h"
#include "config.hpp"
#include "filesystem.hpp"
#include "game_config.hpp"

View file

@ -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>

View file

@ -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>

View file

@ -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
View 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