Update of /cvsroot/mockpp/mockpp/mockpp/compat
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10006/compat
Modified Files:
Formatter.cpp
Log Message:
fixes bcb5/g++ 2.95
Index: Formatter.cpp
===================================================================
RCS file: /cvsroot/mockpp/mockpp/mockpp/compat/Formatter.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- Formatter.cpp 9 Apr 2005 15:32:44 -0000 1.38
+++ Formatter.cpp 10 Apr 2005 12:33:52 -0000 1.39
@@ -30,6 +30,7 @@
#include <mockpp/mockpp.h> // always first header
#include <cstdio>
+#include <cctype>
#include <mockpp/compat/Formatter.h>
#include <mockpp/compat/AssertionFailedError.h>
@@ -211,7 +212,11 @@
#ifndef MOCKPP_MAKE_CHAR_READABLE
text += x;
#else
- if (!std::isalnum(x))
+#if (defined (_MSC_VER) && (_MSC_VER <= 1300)) || (defined (__GNUC__) && (__GNUC__ < 3))
+ if (!isalnum(x))
+#else
+ if (!std::isalnum(x))
+#endif
{
text += MOCKPP_PCHAR("0x") + number((unsigned long)x, 16);
}
|