Skip to content

Commit

Permalink
Build fix for Cygwin relating to itoa(); add touchconfig.sh to fix bu…
Browse files Browse the repository at this point in the history
…ildsys file timestamps.
  • Loading branch information
Brian Cox committed Mar 24, 2016
1 parent 19aaa71 commit 6c7af5b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/core/errorutil.cpp 100644 → 100755
Expand Up @@ -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(""))
Expand All @@ -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);
}

//=============================================================================
Expand Down
8 changes: 8 additions & 0 deletions touchconfig.sh
@@ -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

0 comments on commit 6c7af5b

Please sign in to comment.