Index: src/prelude.h
===================================================================
RCS file: /cvs/hugs98/src/prelude.h,v
retrieving revision 1.75
diff -u -r1.75 prelude.h
--- src/prelude.h	31 Aug 2005 13:59:51 -0000	1.75
+++ src/prelude.h	1 Sep 2005 15:14:02 -0000
@@ -195,42 +195,13 @@
 
 
 /*---------------------------------------------------------------------------
- * Include windows.h and friends:
+ * Include stuff required for WinHugs:
+ *  mainly redirect get/put console functions
+ *  also required API definitions
  *-------------------------------------------------------------------------*/
 
-#if     HUGS_FOR_WINDOWS
-#include <windows.h>			/* Misc. Windows hackery	   */
-#include <commctrl.h>			/* standard Windows GUI components */
-
-#if	__MSDOS__
-# define INT           int
-# define UNSIGNED      unsigned
-# define CHAR	       char
-# define TCHAR         char
-# define UCHAR	       UNSIGNED CHAR
-# define ULONG	       unsigned long
-# define APIENTRY      PASCAL
-# define HUGE          huge
-# define LPOFNHOOKPROC FARPROC
-# define CMDdata(w,l)  (HIWORD(l))	/* decoding WM_COMMAND message	   */
-# define CMDitem(w,l)  (w)
-# define CMDhwnd(w,l)  ((HWND)(LOWORD(l)))
-#else
-# define HUGE
-# define CMDdata(w,l)  (HIWORD(w))	/* decoding WM_COMMAND message	   */
-# define CMDitem(w,l)  (LOWORD(w))
-# define CMDhwnd(w,l)  ((HWND)(l))
-#endif
-
-#if HUGS_FOR_WINDOWS
-#include "winhugs\winmenu.h"
-#endif
-extern char *appName;
-extern HWND		hWndText;	/* text output window handle	   */
-extern HWND		hWndMain;	/* main window handle		   */
 #if HUGS_FOR_WINDOWS
-#include "winhugs\wintext.h"
-#endif
+#include "winhugs\IORemap.h"
 #endif
 
