projects
/
retroray
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1ee73f3
)
fix dos build
author
John Tsiombikas
<nuclear@member.fsf.org>
Wed, 14 Jun 2023 21:06:36 +0000
(
00:06
+0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Wed, 14 Jun 2023 21:06:36 +0000
(
00:06
+0300)
libs/drawtext/draw.c
patch
|
blob
|
history
libs/treestor/src/treestor.c
patch
|
blob
|
history
src/cpuid.h
patch
|
blob
|
history
src/dos/gfx.h
patch
|
blob
|
history
src/dos/vga.h
patch
|
blob
|
history
diff --git
a/libs/drawtext/draw.c
b/libs/drawtext/draw.c
index
02b83da
..
08047c1
100644
(file)
--- 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
#define vsnprintf _vsnprintf
#endif
diff --git
a/libs/treestor/src/treestor.c
b/libs/treestor/src/treestor.c
index
5e00a80
..
67fdcf6
100644
(file)
--- a/
libs/treestor/src/treestor.c
+++ b/
libs/treestor/src/treestor.c
@@
-11,7
+11,7
@@
#include <alloca.h>
#endif
#include <alloca.h>
#endif
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__WATCOMC__)
#define snprintf _snprintf
#endif
#define snprintf _snprintf
#endif
diff --git
a/src/cpuid.h
b/src/cpuid.h
index
5566f69
..
ce1e09e
100644
(file)
--- a/
src/cpuid.h
+++ b/
src/cpuid.h
@@
-1,7
+1,7
@@
#ifndef CPUID_H_
#define CPUID_H_
#ifndef CPUID_H_
#define CPUID_H_
-#include "inttypes.h"
+#include "sizeint.h"
struct cpuid_info {
uint32_t maxidx; /* 0: eax */
struct cpuid_info {
uint32_t maxidx; /* 0: eax */
diff --git
a/src/dos/gfx.h
b/src/dos/gfx.h
index
4724f41
..
0c1fe86
100644
(file)
--- a/
src/dos/gfx.h
+++ b/
src/dos/gfx.h
@@
-1,7
+1,7
@@
#ifndef GFX_H_
#define GFX_H_
#ifndef GFX_H_
#define GFX_H_
-#include "inttypes.h"
+#include "sizeint.h"
struct video_mode {
uint16_t mode;
struct video_mode {
uint16_t mode;
diff --git
a/src/dos/vga.h
b/src/dos/vga.h
index
d8a341c
..
59d22ef
100644
(file)
--- a/
src/dos/vga.h
+++ b/
src/dos/vga.h
@@
-1,7
+1,7
@@
#ifndef VGA_H_
#define VGA_H_
#ifndef VGA_H_
#define VGA_H_
-#include "inttypes.h"
+#include "sizeint.h"
#include "dosutil.h"
#include "cdpmi.h"
#include "vgaregs.h"
#include "dosutil.h"
#include "cdpmi.h"
#include "vgaregs.h"