From ada9427ce6be3fb43fd9c36e0ac02809e762a88e Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Thu, 15 Jun 2023 00:06:36 +0300 Subject: [PATCH] fix dos build --- libs/drawtext/draw.c | 2 +- libs/treestor/src/treestor.c | 2 +- src/cpuid.h | 2 +- src/dos/gfx.h | 2 +- src/dos/vga.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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" -- 1.7.10.4