fix Mac errors involving use of 'VERSION'

This commit is contained in:
kreatordxx 2007-06-10 02:27:12 +00:00
parent 5f26019972
commit 4f0ab045ff
3 changed files with 11 additions and 6 deletions

View file

@ -1,5 +1,9 @@
D2X-Rebirth Changelog
20070610
--------
arch/carbon/conf.h, SConstruct: fix Mac errors involving use of 'VERSION'
20070601
--------
main/menu.c, main/netmisc.h, main/network.c, main/newmenu.c: improved pixel-correct (almost) scaling of menus; new Netgame info screen which can show up necessary game rules

View file

@ -372,6 +372,9 @@ elif sys.platform == 'darwin':
print "including SDL_mixer"
lflags += ' -framework SDL_mixer'
sys.path += ['./arch/cocoa']
VERSION = str(D2XMAJOR) + '.' + str(D2XMINOR)
if (D2XMICRO):
VERSION += '.' + str(D2XMICRO)
env['VERSION_NUM'] = VERSION
env['VERSION_NAME'] = PROGRAM_NAME + ' v' + VERSION
import tool_bundle

View file

@ -5,16 +5,14 @@
/* Define to enable console */
/* #undef CONSOLE */
// Used only in vers_id.h:D2X_IVER, which is unused (may be useful for external utilities that use D2X source)
/* d2x major version */
#define D2XMAJOR 0
#define D2XMAJOR "0"
/* d2x minor version */
#define D2XMINOR 5
#define D2XMINOR "5"
/* d2x micro version */
#define D2XMICRO 0
#define D2XMICRO "2"
/* Define if you want to build the editor */
/* #undef EDITOR */
@ -101,7 +99,7 @@
/* #undef USE_LINUX_JOY */
/* Version number of package */
#define VERSION "0.5.0"
//#define VERSION "0.5.0"
/* Define if your processor needs data to be word-aligned */
/* #undef WORDS_NEED_ALIGNMENT */