From 82b7f75b80d9a3ca99bd5253c38ec9055e0dd2d8 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Mon, 1 Feb 2021 04:57:39 +0200 Subject: [PATCH] Update sqconfig.h --- vendor/Squirrel/include/sqconfig.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/vendor/Squirrel/include/sqconfig.h b/vendor/Squirrel/include/sqconfig.h index f61745f9..8e96517c 100644 --- a/vendor/Squirrel/include/sqconfig.h +++ b/vendor/Squirrel/include/sqconfig.h @@ -2,9 +2,11 @@ #ifdef __cplusplus #include #include + #include #else #include #include + #include #endif #ifdef _SQ64 @@ -144,8 +146,13 @@ typedef SQInteger SQRESULT; #endif #ifdef _SQ64 - #define _PRINT_INT_PREC _SC("ll") - #define _PRINT_INT_FMT _SC("%lld") + #if (defined(linux) || defined(__linux) || defined(__linux__)) && (LONG_MAX == LLONG_MAX) + #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 #define _PRINT_INT_FMT _SC("%d") #endif