|
@@ -87,7 +87,7 @@
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#include <cinttypes>
|
|
#include <cinttypes>
|
|
-#include <limits.h>
|
|
|
|
|
|
+#include <climits>
|
|
|
|
|
|
// temporary fix for bugreport:4961 (unintended conversion from signed to unsigned)
|
|
// temporary fix for bugreport:4961 (unintended conversion from signed to unsigned)
|
|
// (-20 >= UCHAR_MAX) returns true
|
|
// (-20 >= UCHAR_MAX) returns true
|
|
@@ -178,8 +178,7 @@ typedef unsigned long int ppuint32;
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// integer with exact processor width (and best speed)
|
|
// integer with exact processor width (and best speed)
|
|
//////////////////////////////
|
|
//////////////////////////////
|
|
-#include <stddef.h> // size_t
|
|
|
|
-//#include <stdbool.h> //boolean
|
|
|
|
|
|
+#include <cstddef> // size_t
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
@@ -301,7 +300,7 @@ typedef char bool;
|
|
#define Assert(EX)
|
|
#define Assert(EX)
|
|
#else
|
|
#else
|
|
// extern "C" {
|
|
// extern "C" {
|
|
-#include <assert.h>
|
|
|
|
|
|
+#include <cassert>
|
|
// }
|
|
// }
|
|
#if !defined(DEFCPP) && defined(WIN32) && !defined(MINGW)
|
|
#if !defined(DEFCPP) && defined(WIN32) && !defined(MINGW)
|
|
#include <crtdbg.h>
|
|
#include <crtdbg.h>
|
|
@@ -313,7 +312,7 @@ typedef char bool;
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// Has to be unsigned to avoid problems in some systems
|
|
// Has to be unsigned to avoid problems in some systems
|
|
// Problems arise when these functions expect an argument in the range [0,256[ and are fed a signed char.
|
|
// Problems arise when these functions expect an argument in the range [0,256[ and are fed a signed char.
|
|
-#include <ctype.h>
|
|
|
|
|
|
+#include <cctype>
|
|
#define ISALNUM(c) (isalnum((unsigned char)(c)))
|
|
#define ISALNUM(c) (isalnum((unsigned char)(c)))
|
|
#define ISALPHA(c) (isalpha((unsigned char)(c)))
|
|
#define ISALPHA(c) (isalpha((unsigned char)(c)))
|
|
#define ISCNTRL(c) (iscntrl((unsigned char)(c)))
|
|
#define ISCNTRL(c) (iscntrl((unsigned char)(c)))
|
|
@@ -335,7 +334,7 @@ typedef char bool;
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// Make sure va_copy exists
|
|
// Make sure va_copy exists
|
|
-#include <stdarg.h> // va_list, va_copy(?)
|
|
|
|
|
|
+#include <cstdarg> // va_list, va_copy(?)
|
|
#if !defined(va_copy)
|
|
#if !defined(va_copy)
|
|
#if defined(__va_copy)
|
|
#if defined(__va_copy)
|
|
#define va_copy __va_copy
|
|
#define va_copy __va_copy
|