- don't depend on stdint.h because older MSVC versions do not have it.

This commit is contained in:
Christoph Oelckers 2014-05-01 12:30:56 +02:00
parent cc4305e86c
commit 314225f1b0
7 changed files with 25 additions and 6 deletions

View File

@ -23,7 +23,7 @@
#define __HQX_COMMON_H_
#include <stdlib.h>
#include <stdint.h>
#include "mystdint.h"
#define MASK_2 0x0000FF00
#define MASK_13 0x00FF00FF

View File

@ -18,7 +18,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdint.h>
#include "mystdint.h"
#include "common.h"
#include "hqx.h"

View File

@ -18,7 +18,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdint.h>
#include "mystdint.h"
#include "common.h"
#include "hqx.h"

View File

@ -18,7 +18,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdint.h>
#include "mystdint.h"
#include "common.h"
#include "hqx.h"

View File

@ -21,7 +21,7 @@
#ifndef __HQX_H_
#define __HQX_H_
#include <stdint.h>
#include "mystdint.h"
#if defined( __GNUC__ )
#ifdef __MINGW32__

View File

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdint.h>
#include "mystdint.h"
#include "hqx.h"
uint32_t *RGBtoYUV;

19
src/gl/hqnx/mystdint.h Normal file
View File

@ -0,0 +1,19 @@
#ifndef __MYSTDINT_H
#define __MYSTDINT_H
#ifndef _MSC_VER
#include <stdint.h>
#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