From bce716fa908584f435dcf97904fb37ada6dd90b7 Mon Sep 17 00:00:00 2001 From: Streusel Date: Tue, 8 Jul 2014 22:49:50 -0700 Subject: reversed portion of 7cd967f812ab741c41c416fb9f7c2a921c36e947 that would point to nothing. --- src/common/thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/thread.c') diff --git a/src/common/thread.c b/src/common/thread.c index 933ee2c0e..b97eecb44 100644 --- a/src/common/thread.c +++ b/src/common/thread.c @@ -10,13 +10,13 @@ #include "thread.h" -#include "../common/sysinfo.h" // sysinfo->getpagesize() #include "../common/cbasetypes.h" #include "../common/malloc.h" #include "../common/showmsg.h" #ifdef WIN32 # include "../common/winapi.h" +# define getpagesize() 4096 // @TODO: implement this properly (GetSystemInfo .. dwPageSize..). (Atm as on all supported win platforms its 4k its static.) # define __thread __declspec( thread ) #else # include @@ -169,7 +169,7 @@ rAthread rathread_createEx( rAthreadProc entryPoint, void *param, size_t szSta // given stacksize aligned to systems pagesize? - tmp = szStack % sysinfo->getpagesize(); + tmp = szStack % getpagesize(); if(tmp != 0) szStack += tmp; -- cgit v1.2.3-60-g2f50