From ef02682c94b5323b2950f9cfa0708ba510e3af67 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Thu, 1 Mar 2012 23:36:11 +0000 Subject: [PATCH] Define strtoll to _strtoi64 on MSVC. Usage of a search machine by Hendricks. git-svn-id: https://svn.eduke32.com/eduke32@2394 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/compat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/polymer/eduke32/build/include/compat.h b/polymer/eduke32/build/include/compat.h index 168a32546..82f974e15 100644 --- a/polymer/eduke32/build/include/compat.h +++ b/polymer/eduke32/build/include/compat.h @@ -431,6 +431,11 @@ static inline uint16_t system_15bit_rand(void) { return (uint16_t)rand(); } static inline uint16_t system_15bit_rand(void) { return ((uint16_t)rand())&0x7fff; } #endif +#if defined(_MSC_VER) +// XXX: non-__compat_h_macrodef__ version? +#define strtoll _strtoi64 +#endif + #ifdef __compat_h_macrodef__ # define Brand rand # define Balloca alloca