From ccb771ae878fcf023b4f2a22312b211c5d72df42 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 21 May 2003 04:19:23 +0000
Subject: [PATCH] New USE_UIFC32 makefile option... enable the use of the new
 unified uifc (conio/curses)

---
 src/sbbs3/scfg/Makefile | 6 ++++++
 src/sbbs3/scfg/scfg.c   | 6 +++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/sbbs3/scfg/Makefile b/src/sbbs3/scfg/Makefile
index 69df8e66db..b864ec7566 100644
--- a/src/sbbs3/scfg/Makefile
+++ b/src/sbbs3/scfg/Makefile
@@ -11,6 +11,7 @@
 # Macros
 #DEBUG	=	1				# Comment out for release (non-debug) version
 USE_FLTK=	1
+USE_UIFC32= 1
 CC		=	bcc32
 LD		=	ilink32
 SLASH	=	\\
@@ -48,7 +49,12 @@ ODIR	=	$(ODIR).release
 !include targets.mk	# defines all targets
 !include objects.mk	# defines $(OBJS)
 
+!ifdef USE_UIFC32
+OBJS = $(OBJS) $(ODIR)\uifc32.$(OFILE)
+CFLAGS  =   $(CFLAGS) -DUSE_UIFC32
+!else
 OBJS = $(OBJS) $(ODIR)\uifc.$(OFILE)
+!endif
 
 !ifdef USE_FLTK
 CFLAGS 	= $(CFLAGS) -DUSE_FLTK -I$(INCLUDE)\fltk
diff --git a/src/sbbs3/scfg/scfg.c b/src/sbbs3/scfg/scfg.c
index 8b33f82f0e..b8b54cc7f2 100644
--- a/src/sbbs3/scfg/scfg.c
+++ b/src/sbbs3/scfg/scfg.c
@@ -210,11 +210,15 @@ else
 if(!door_mode)
     i=uifcinid(&uifc);  /* dialog */
 else
+#elif defined(USE_UIFC32)
+if(!door_mode)
+    i=uifcini32(&uifc);  /* curses/conio */
+else
 #elif defined(USE_CURSES)
 if(!door_mode)
     i=uifcinic(&uifc);  /* curses */
 else
-#elif !defined(__unix__) && !defined(_MSC_VER)
+#elif !defined(__unix__) && !defined(_MSC_VER) && !defined(USE_UIFC32)
 if(!door_mode)
     i=uifcini(&uifc);   /* conio */
 else
-- 
GitLab