From 933fa95a0df779ad00fd8088ddfd29506dd5e3b9 Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 10 Oct 2024 02:06:20 +0000 Subject: [PATCH] fix compat headers git-svn-id: file:///raid/svn-personal/tewi/trunk@301 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/main.c | 2 ++ VC6Compat/stdint.h | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Server/main.c b/Server/main.c index ca10e0e..ba4ade2 100644 --- a/Server/main.c +++ b/Server/main.c @@ -68,6 +68,8 @@ PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER); #define printf(...) tt_printf(__VA_ARGS__) #define STDERR_LOG(...) tt_printf(__VA_ARGS__) #elif defined(_MSC_VER) || defined(__BORLANDC__) || defined(__USLC__) +#include + void STDERR_LOG(const char* format, ...) { va_list args; va_start(args, format); diff --git a/VC6Compat/stdint.h b/VC6Compat/stdint.h index 6cfba41..4c58f85 100644 --- a/VC6Compat/stdint.h +++ b/VC6Compat/stdint.h @@ -6,9 +6,9 @@ typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; -typedef signed char int8_t; -typedef signed short int16_t; -typedef signed int int32_t; +typedef char int8_t; +typedef short int16_t; +typedef int int32_t; #define INT32_MAX 0x7fffffff -- 2.43.0