Build fix for Cygwin relating to itoa(); add touchconfig.sh to fix buildsys file timestamps.

This commit is contained in:
Brian Cox 2016-03-24 16:29:35 -07:00
parent 19aaa7111c
commit 6c7af5b060
2 changed files with 13 additions and 4 deletions

9
src/core/errorutil.cpp Normal file → Executable file
View File

@ -43,14 +43,15 @@
#if IS_UNIX
namespace //unique
{
TCHAR* _itot( int value, TCHAR* string, int radix)
TCHAR* tw_itot( int value, TCHAR* string, int radix)
{
_stprintf( string, "%d", value );
return string;
}
}
#endif
#else
#define tw_itot _itot
#endif //IS_UNIX
eInternal::eInternal(TCHAR* sourceFile, int lineNum)
: eError(_T(""))
@ -60,7 +61,7 @@ eInternal::eInternal(TCHAR* sourceFile, int lineNum)
mMsg = _T("File: ");
mMsg += sourceFile;
mMsg += _T(" Line: ");
mMsg += _itot(lineNum, buf, 10);
mMsg += tw_itot(lineNum, buf, 10);
}
//=============================================================================

8
touchconfig.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
# On a fresh clone/checkout/untar/etc., sometimes make thinks
# automake files are out of sync because they all have the same timestamp,
# and insists they need to be regenerated, though they really don't.
# This script bumps the timestamps on the right files in the right order,
# such that they don't all match, and make can proceed on its way.
touch configure.ac aclocal.m4 configure Makefile.am Makefile.in