mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
- don't depend on stdint.h because older MSVC versions do not have it.
This commit is contained in:
parent
cc4305e86c
commit
314225f1b0
7 changed files with 25 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#ifndef __HQX_H_
|
||||
#define __HQX_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include "mystdint.h"
|
||||
|
||||
#if defined( __GNUC__ )
|
||||
#ifdef __MINGW32__
|
||||
|
|
|
@ -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
19
src/gl/hqnx/mystdint.h
Normal 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
|
Loading…
Reference in a new issue