From 314225f1b0b8f95433d4099f35b90dabd4368e62 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 1 May 2014 12:30:56 +0200 Subject: [PATCH] - don't depend on stdint.h because older MSVC versions do not have it. --- src/gl/hqnx/common.h | 2 +- src/gl/hqnx/hq2x.cpp | 2 +- src/gl/hqnx/hq3x.cpp | 2 +- src/gl/hqnx/hq4x.cpp | 2 +- src/gl/hqnx/hqx.h | 2 +- src/gl/hqnx/init.cpp | 2 +- src/gl/hqnx/mystdint.h | 19 +++++++++++++++++++ 7 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 src/gl/hqnx/mystdint.h diff --git a/src/gl/hqnx/common.h b/src/gl/hqnx/common.h index c3e700571..3388651bf 100644 --- a/src/gl/hqnx/common.h +++ b/src/gl/hqnx/common.h @@ -23,7 +23,7 @@ #define __HQX_COMMON_H_ #include -#include +#include "mystdint.h" #define MASK_2 0x0000FF00 #define MASK_13 0x00FF00FF diff --git a/src/gl/hqnx/hq2x.cpp b/src/gl/hqnx/hq2x.cpp index 94c1dfb5a..679a8c2b6 100644 --- a/src/gl/hqnx/hq2x.cpp +++ b/src/gl/hqnx/hq2x.cpp @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include +#include "mystdint.h" #include "common.h" #include "hqx.h" diff --git a/src/gl/hqnx/hq3x.cpp b/src/gl/hqnx/hq3x.cpp index 6ffa6228d..cbc7fab39 100644 --- a/src/gl/hqnx/hq3x.cpp +++ b/src/gl/hqnx/hq3x.cpp @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include +#include "mystdint.h" #include "common.h" #include "hqx.h" diff --git a/src/gl/hqnx/hq4x.cpp b/src/gl/hqnx/hq4x.cpp index 0a7b7512d..7ad6e06c3 100644 --- a/src/gl/hqnx/hq4x.cpp +++ b/src/gl/hqnx/hq4x.cpp @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include +#include "mystdint.h" #include "common.h" #include "hqx.h" diff --git a/src/gl/hqnx/hqx.h b/src/gl/hqnx/hqx.h index 089b5a0bc..ee968a561 100644 --- a/src/gl/hqnx/hqx.h +++ b/src/gl/hqnx/hqx.h @@ -21,7 +21,7 @@ #ifndef __HQX_H_ #define __HQX_H_ -#include +#include "mystdint.h" #if defined( __GNUC__ ) #ifdef __MINGW32__ diff --git a/src/gl/hqnx/init.cpp b/src/gl/hqnx/init.cpp index a3d97ba88..f27d45a65 100644 --- a/src/gl/hqnx/init.cpp +++ b/src/gl/hqnx/init.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include +#include "mystdint.h" #include "hqx.h" uint32_t *RGBtoYUV; diff --git a/src/gl/hqnx/mystdint.h b/src/gl/hqnx/mystdint.h new file mode 100644 index 000000000..b2da9df8c --- /dev/null +++ b/src/gl/hqnx/mystdint.h @@ -0,0 +1,19 @@ +#ifndef __MYSTDINT_H +#define __MYSTDINT_H + +#ifndef _MSC_VER +#include +#else +typedef unsigned __int64 uint64_t; +typedef signed __int64 int64_t; +typedef unsigned __int32 uint32_t; +typedef signed __int32 int32_t; +typedef unsigned __int16 uint16_t; +typedef signed __int16 int16_t; +typedef unsigned __int8 uint8_t; +typedef signed __int8 int8_t; +#endif + + + +#endif \ No newline at end of file