diff --git a/src/gl/hqnx/common.h b/src/gl/hqnx/common.h index c3e7005717..3388651bf9 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 94c1dfb5a4..679a8c2b6b 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 6ffa6228df..cbc7fab39e 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 0a7b7512dc..7ad6e06c3a 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 089b5a0bc3..ee968a5619 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 a3d97ba88f..f27d45a65a 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 0000000000..b2da9df8c5 --- /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