Reorganize wesconfig.h so that RC only sees relevant definitions

This commit is contained in:
Ignacio R. Morelle 2015-07-20 21:07:18 -04:00
parent c2c1dac618
commit eb889462f6

View file

@ -9,6 +9,8 @@
* before and after each release.
*/
#ifndef RC_INVOKED
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
@ -17,19 +19,6 @@
# define LOCALEDIR "translations"
#endif
//always use the version string in here, otherwise autotools can override in
//a bad way...
#ifdef VERSION
#undef VERSION
#endif
#define VERSION "1.13.1+dev"
// Used for the Windows executables' version info resource.
#define RC_VERSION_MAJOR 1
#define RC_VERSION_MINOR 13
#define RC_VERSION_REVISION 1
#ifndef PACKAGE
#define PACKAGE "wesnoth"
#endif
@ -43,4 +32,19 @@
*/
#define MIN_SAVEGAME_VERSION "1.3.10"
#endif /* !RC_INVOKED */
//always use the version string in here, otherwise autotools can override in
//a bad way...
#ifdef VERSION
#undef VERSION
#endif
#define VERSION "1.13.1+dev"
// Used for the Windows executables' version info resource.
#define RC_VERSION_MAJOR 1
#define RC_VERSION_MINOR 13
#define RC_VERSION_REVISION 1
#endif