summaryrefslogtreecommitdiff
path: root/src/win95/db.c
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-08-03 05:30:40 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commit29792b40ef3d62dfaf65802cd5be4c68031d94f7 (patch)
treeb835fd5f2635fd2f49cc604de62980cb770fd8fd /src/win95/db.c
parentcfd7274022c512ba5e06a659a5281097f6468e40 (diff)
Fixed errors in inline.h.
More compiling. 156 unique undefined references.
Diffstat (limited to 'src/win95/db.c')
-rw-r--r--src/win95/db.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/win95/db.c b/src/win95/db.c
index 90fd200..e3ee6d4 100644
--- a/src/win95/db.c
+++ b/src/win95/db.c
@@ -17,6 +17,9 @@
* stuff, which is, after all, a part of Windows. If you want Windows
* stuff, but NOT Direct Draw, define DB_NODIRECTDRAW.
*/
+
+#define DB_NOWINDOWS
+#define DB_NODIRECTDRAW
/* ******************************************************************** *
* *
@@ -26,8 +29,9 @@
/* I N C L U D E S **************************************************** */
+#include "fixer.h"
+
/* Windows includes. Actually internal, but here to allow pre-compilation. */
-#include "advwin32.h"
#ifndef DB_NOWINDOWS
#include <windows.h>
#include "advwin32.h"
@@ -63,9 +67,8 @@ int db_option = 0; /* Default is off. */
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
-#include <conio.h>
-#include <direct.h> /* For getcwd() */
#include <stdarg.h> /* For variable arguments. */
+#include <unistd.h>
/* C O N S T A N T S ************************************************** */
@@ -90,7 +93,8 @@ int db_option = 0; /* Default is off. */
#define DB_FORCE_EXCEPTION() ( db_vol_zero = 1 / db_vol_zero )
/* Cause a brakepoint. */
-#define DB_FORCE_BRAKEPOINT() do {__asm int 3} while(0)
+//#define DB_FORCE_BRAKEPOINT() do {__asm int 3} while(0)
+#define DB_FORCE_BRAKEPOINT() { }
/* T Y P E S ********************************************************** */
@@ -534,6 +538,7 @@ static void db_do_std_prompt(unsigned yOffset)
switch(db_display_type)
{
case DB_DOS:
+#if 0
printf( db_prompt_std );
printf("\n");
do
@@ -541,6 +546,9 @@ static void db_do_std_prompt(unsigned yOffset)
ch = toupper(getch());
}
while((ch != 'N') && (ch != 'Y') && (ch != 'X'));
+#endif
+ ch = 'N';
+
break;
#ifndef DB_NODIRECTDRAW
case DB_DIRECTDRAW:
@@ -602,7 +610,7 @@ static void db_do_std_prompt(unsigned yOffset)
{
exit(-10);
}
- else if(ch == 'X')
+ else if (ch == 'X')
{
if(db_use_brakepoints)
{