Compile fix

This commit is contained in:
Joshua Granick
2018-06-25 12:06:28 -07:00
parent ce50286f0a
commit 727d1cdfa6
2 changed files with 9 additions and 0 deletions

View File

@@ -237,6 +237,12 @@ typedef uint16_t char16_t;
typedef uint32_t char32_t; typedef uint32_t char32_t;
#elif defined(HL_NATIVE_UCHAR_FUN) #elif defined(HL_NATIVE_UCHAR_FUN)
# include <uchar.h> # include <uchar.h>
#elif __cplusplus <= 199711L
# include <stdint.h>
typedef int16_t char16_t;
typedef uint16_t uchar16_t;
typedef int32_t char32_t;
typedef uint32_t uchar32_t;
#endif #endif
typedef char16_t uchar; typedef char16_t uchar;
# undef USTR # undef USTR

View File

@@ -15,6 +15,9 @@ typedef vdynobj hl_vdynobj;
typedef venum hl_venum; typedef venum hl_venum;
typedef vstring hl_vstring; typedef vstring hl_vstring;
#undef hl_aptr
#define hl_aptr(a,t) ((t*)(((hl_varray*)(a))+1))
#include <hx/CFFIPrime.h> #include <hx/CFFIPrime.h>