mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
more correct types.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4698 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b1e3060648
commit
957e9b494c
1 changed files with 18 additions and 7 deletions
|
@ -74,13 +74,24 @@ void BadBuiltin(void);
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#ifndef _VM_H
|
#ifndef _VM_H
|
||||||
#ifdef _WIN64
|
#if __STDC_VERSION__ >= 199901L
|
||||||
typedef long long qintptr_t;
|
//C99 has a stdint header which hopefully contains an intptr_t
|
||||||
typedef unsigned long long quintptr_t;
|
//its optional... but if its not in there then its unlikely you'll actually be able to get the engine to a stage where it *can* load anything
|
||||||
#else
|
#include <stdint.h>
|
||||||
typedef long qintptr_t;
|
#define qintptr_t intptr_t
|
||||||
typedef unsigned long quintptr_t;
|
#define quintptr_t uintptr_t
|
||||||
#endif
|
#else
|
||||||
|
#ifdef _WIN64
|
||||||
|
typedef long long qintptr_t;
|
||||||
|
typedef unsigned long long quintptr_t;
|
||||||
|
#else
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
#define __w64
|
||||||
|
#endif
|
||||||
|
typedef long __w64 qintptr_t;
|
||||||
|
typedef unsigned long __w64 quintptr_t;
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
|
Loading…
Reference in a new issue