]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_head.h
16_pm tweakings
[16.git] / src / lib / 16_head.h
index b840043d4fd149606472f7f4ae2d00d84c585642..b3423ed0e146d5572c56c10a1b19a9adebebf62f 100755 (executable)
@@ -42,6 +42,7 @@
 #include <sys/stat.h>\r
 #include <mem.h>\r
 #include <string.h>\r
+#include <limits.h>\r
 #ifdef __WATCOMC__\r
 #include <i86.h>\r
 #include <unistd.h>\r
@@ -159,13 +160,15 @@ extern    int                     profilehandle,debughandle;      //make it into game global
 #endif\r
 #ifdef __WATCOMC__\r
 #define _FCORELEFT 0x90000UL+16UL\r
-extern union REGS CPURegs;\r
+static union REGS CPURegs;\r
 \r
 #define _AX CPURegs.x.ax\r
 #define _BX CPURegs.x.bx\r
 #define _CX CPURegs.x.cx\r
 #define _DX CPURegs.x.dx\r
 \r
+#define _SI CPURegs.x.si\r
+\r
 #define _AH CPURegs.h.ah\r
 #define _AL CPURegs.h.al\r
 #define _BH CPURegs.h.bh\r