2017-12-18 19:06:21 +01:00
|
|
|
#undef DOSFAR
|
|
|
|
#undef DOSTEXTFAR
|
|
|
|
|
2012-10-15 02:08:06 +02:00
|
|
|
/* Included by initialisation functions */
|
|
|
|
|
|
|
|
#if _MSC_VER != 0
|
|
|
|
extern __segment DosDataSeg; /* serves for all references to the DOS DATA segment
|
|
|
|
necessary for MSC+our funny linking model
|
|
|
|
*/
|
|
|
|
|
|
|
|
extern __segment DosTextSeg;
|
|
|
|
|
|
|
|
#define DOSFAR __based(DosDataSeg)
|
|
|
|
#define DOSTEXTFAR __based(DosTextSeg)
|
|
|
|
|
|
|
|
#elif defined(__TURBOC__)
|
|
|
|
|
|
|
|
#define DOSFAR FAR
|
|
|
|
#define DOSTEXTFAR FAR
|
|
|
|
|
|
|
|
#elif defined(__WATCOMC__)
|
|
|
|
|
|
|
|
#define DOSFAR FAR
|
|
|
|
#define DOSTEXTFAR FAR
|
|
|
|
|
2017-12-19 19:16:11 +01:00
|
|
|
#elif defined(__GNUC__)
|
|
|
|
|
2018-04-21 04:36:42 +02:00
|
|
|
#define DOSFAR FAR
|
|
|
|
#define DOSTEXTFAR FAR
|
2017-12-19 19:16:11 +01:00
|
|
|
|
|
|
|
#elif !defined(I86)
|
2012-10-15 02:08:06 +02:00
|
|
|
|
|
|
|
#define DOSFAR
|
|
|
|
#define DOSTEXTFAR
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#error unknown compiler - please adjust
|
|
|
|
We might even deal with a pre-ANSI compiler. This will certainly not compile.
|
|
|
|
#endif
|