mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Update sqconfig.h
This commit is contained in:
parent
05cfb08e47
commit
82b7f75b80
11
vendor/Squirrel/include/sqconfig.h
vendored
11
vendor/Squirrel/include/sqconfig.h
vendored
@ -2,9 +2,11 @@
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
#include <climits>
|
||||||
#else
|
#else
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <limits.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _SQ64
|
#ifdef _SQ64
|
||||||
@ -144,8 +146,13 @@ typedef SQInteger SQRESULT;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _SQ64
|
#ifdef _SQ64
|
||||||
#define _PRINT_INT_PREC _SC("ll")
|
#if (defined(linux) || defined(__linux) || defined(__linux__)) && (LONG_MAX == LLONG_MAX)
|
||||||
#define _PRINT_INT_FMT _SC("%lld")
|
#define _PRINT_INT_PREC _SC("l")
|
||||||
|
#define _PRINT_INT_FMT _SC("%ld")
|
||||||
|
#else
|
||||||
|
#define _PRINT_INT_PREC _SC("ll")
|
||||||
|
#define _PRINT_INT_FMT _SC("%lld")
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define _PRINT_INT_FMT _SC("%d")
|
#define _PRINT_INT_FMT _SC("%d")
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user