From: John Tsiombikas Date: Wed, 14 Jun 2023 21:06:36 +0000 (+0300) Subject: fix dos build X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=ada9427ce6be3fb43fd9c36e0ac02809e762a88e;p=retroray fix dos build --- diff --git a/libs/drawtext/draw.c b/libs/drawtext/draw.c index 02b83da..08047c1 100644 --- a/libs/drawtext/draw.c +++ b/libs/drawtext/draw.c @@ -83,7 +83,7 @@ void dtx_substring(const char *str, int start, int end) } } -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__WATCOMC__) #define vsnprintf _vsnprintf #endif diff --git a/libs/treestor/src/treestor.c b/libs/treestor/src/treestor.c index 5e00a80..67fdcf6 100644 --- a/libs/treestor/src/treestor.c +++ b/libs/treestor/src/treestor.c @@ -11,7 +11,7 @@ #include #endif -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__WATCOMC__) #define snprintf _snprintf #endif diff --git a/src/cpuid.h b/src/cpuid.h index 5566f69..ce1e09e 100644 --- a/src/cpuid.h +++ b/src/cpuid.h @@ -1,7 +1,7 @@ #ifndef CPUID_H_ #define CPUID_H_ -#include "inttypes.h" +#include "sizeint.h" struct cpuid_info { uint32_t maxidx; /* 0: eax */ diff --git a/src/dos/gfx.h b/src/dos/gfx.h index 4724f41..0c1fe86 100644 --- a/src/dos/gfx.h +++ b/src/dos/gfx.h @@ -1,7 +1,7 @@ #ifndef GFX_H_ #define GFX_H_ -#include "inttypes.h" +#include "sizeint.h" struct video_mode { uint16_t mode; diff --git a/src/dos/vga.h b/src/dos/vga.h index d8a341c..59d22ef 100644 --- a/src/dos/vga.h +++ b/src/dos/vga.h @@ -1,7 +1,7 @@ #ifndef VGA_H_ #define VGA_H_ -#include "inttypes.h" +#include "sizeint.h" #include "dosutil.h" #include "cdpmi.h" #include "vgaregs.h"