From 347ccd839134ce7a0c79db0713b498d5c2a42588 Mon Sep 17 00:00:00 2001 From: sezero Date: Mon, 5 Nov 2018 19:41:28 +0300 Subject: [PATCH] glide2x, sst1/sst96, init: added includes for djgpp --- glide2x/sst1/init/init.c | 4 ++++ glide2x/sst1/init/init96/dxdrvr.c | 4 ++++ glide2x/sst1/init/init96/init96.c | 8 ++++++++ glide2x/sst1/init/init96/initmcrx.c | 8 ++++++++ 4 files changed, 24 insertions(+) diff --git a/glide2x/sst1/init/init.c b/glide2x/sst1/init/init.c index cc55899..e3d557f 100644 --- a/glide2x/sst1/init/init.c +++ b/glide2x/sst1/init/init.c @@ -37,6 +37,10 @@ #define _outpw(port, data) pioOutWord(port, data); #endif +#ifdef __DJGPP__ +#include +#endif + #include #include diff --git a/glide2x/sst1/init/init96/dxdrvr.c b/glide2x/sst1/init/init96/dxdrvr.c index 7e2178c..3b5785d 100644 --- a/glide2x/sst1/init/init96/dxdrvr.c +++ b/glide2x/sst1/init/init96/dxdrvr.c @@ -53,8 +53,12 @@ #include #ifdef __DOS32__ +#ifdef __DJGPP__ +#include +#else #include #endif +#endif #include diff --git a/glide2x/sst1/init/init96/init96.c b/glide2x/sst1/init/init96/init96.c index 185e446..86b947d 100644 --- a/glide2x/sst1/init/init96/init96.c +++ b/glide2x/sst1/init/init96/init96.c @@ -31,8 +31,12 @@ #endif #ifdef __DOS32__ +#ifdef __DJGPP__ +#include +#else #include #endif +#endif #ifdef __WIN32__ #include @@ -47,6 +51,10 @@ #define _outp outp #endif +#ifdef __DJGPP__ +#include +#endif + /* 3Dfx Headers */ #include <3dfx.h> #include diff --git a/glide2x/sst1/init/init96/initmcrx.c b/glide2x/sst1/init/init96/initmcrx.c index 4aaec98..83a6ce0 100644 --- a/glide2x/sst1/init/init96/initmcrx.c +++ b/glide2x/sst1/init/init96/initmcrx.c @@ -27,7 +27,11 @@ #include #include #ifndef __linux__ +#ifdef __DJGPP__ +#include +#else #include +#endif #else #include #define _inp(port) pioInByte(port); @@ -35,8 +39,12 @@ #define _outpw(port,data) pioOutWord(port, data); #endif #ifdef __DOS32__ +#ifdef __DJGPP__ +#include +#else #include #endif +#endif #ifdef __WIN32__ #include