Print "32-bit"/"64-bit" along with the version number in the log.

git-svn-id: https://svn.eduke32.com/eduke32@4274 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2014-01-27 10:31:39 +00:00
parent 3e6fc00474
commit 62abd504ef
3 changed files with 22 additions and 6 deletions

View file

@ -289,6 +289,10 @@ static inline float nearbyintf(float x)
# error Unknown endianness # error Unknown endianness
#endif #endif
#if defined _LP64 || defined __LP64__ || defined __64BIT__ || _ADDR64 || defined _WIN64 || defined __arch64__ || __WORDSIZE == 64 || (defined __sparc && defined __sparcv9) || defined __x86_64 || defined __amd64 || defined __x86_64__ || defined __amd64__ || defined _M_X64 || defined _M_IA64 || defined __ia64 || defined __IA64__
# define BITNESS64
#endif
#ifdef EXTERNC #ifdef EXTERNC
# ifndef SCREWED_UP_CPP # ifndef SCREWED_UP_CPP

View file

@ -8885,7 +8885,16 @@ int32_t ExtPreInit(int32_t argc,const char **argv)
OSD_SetLogFile("mapster32.log"); OSD_SetLogFile("mapster32.log");
OSD_SetVersion("Mapster32" " " VERSION,0,2); OSD_SetVersion("Mapster32" " " VERSION,0,2);
initprintf("Mapster32 %s %s\n", VERSION, s_buildRev); initprintf("Mapster32 %s %s"
#ifdef BITNESS64
" (64-bit)"
#else
" (32-bit)"
#endif
#ifdef __cplusplus
" C++ build"
#endif
"\n", VERSION, s_buildRev);
initprintf("Compiled %s\n", __DATE__" "__TIME__); initprintf("Compiled %s\n", __DATE__" "__TIME__);
// initprintf("Copyright (c) 2008 EDuke32 team\n"); // initprintf("Copyright (c) 2008 EDuke32 team\n");

View file

@ -11210,13 +11210,16 @@ int32_t app_main(int32_t argc, const char **argv)
wm_setapptitle(APPNAME); wm_setapptitle(APPNAME);
initprintf(HEAD2 " %s %s\n", s_buildRev, initprintf(HEAD2 " %s"
#ifdef __cplusplus #ifdef BITNESS64
"C++ build" " (64-bit)"
#else #else
"" " (32-bit)"
#endif #endif
); #ifdef __cplusplus
" C++ build"
#endif
"\n", s_buildRev);
initprintf("Compiled %s\n", __DATE__" "__TIME__); initprintf("Compiled %s\n", __DATE__" "__TIME__);
if (!usecwd) if (!usecwd)