]> git.saurik.com Git - wxWidgets.git/commitdiff
wxMGL revitalised with OpenWatcom.
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 31 Oct 2005 17:00:43 +0000 (17:00 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 31 Oct 2005 17:00:43 +0000 (17:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/bakefiles/config.bkl
build/bakefiles/expat.bkl
build/bakefiles/files.bkl
build/bakefiles/tiff.bkl
include/wx/chkconf.h
include/wx/mgl/chkconf.h [new file with mode: 0644]
include/wx/wxprec.h
src/expat/lib/dosconfig.h [new file with mode: 0644]
src/expat/lib/xmlparse.c
src/expat/lib/xmlrole.c
src/expat/lib/xmltok.c

index c8e241faa9b14316241504855a50d3000081edca..f1e0b5be5c48f7d67318f1e1f6478318ac5cf5f6 100644 (file)
@@ -315,7 +315,7 @@ it if SHARED=1 unless you know what you are doing.
         <set var="TOOLKIT" overwrite="0">
             <if cond="FORMAT=='msevc4prj'">WINCE</if>
             <if cond="FORMAT!='msevc4prj' and PLATFORM_WIN32=='1'">MSW</if>
-            <if cond="PLATFORM_MSDOS=='1'">DOS</if>
+            <if cond="PLATFORM_MSDOS=='1'">MGL</if>
             <if cond="PLATFORM_OS2=='1'">PM</if>
         </set>
         <set var="TOOLKIT_LOWERCASE">$(TOOLKIT.lower())</set>
@@ -428,4 +428,9 @@ Set the version of your Mingw installation here.
         <set var="USE_EXCEPTIONS">0</set>
     </if>
 
+    <!-- Need for wxUniv within wxMGL: -->
+    <if cond="TOOLKIT=='MGL'">
+        <set var="WXUNIV">1</set>
+    </if>
+
 </makefile>
index cd783e312edc2ba09b284937eab8669ecb46ee88..6e6925e5da7f2bfe5a55374a43593f2941daef28 100644 (file)
@@ -1,4 +1,6 @@
 <?xml version="1.0" ?>
+<!-- $Id$ -->
+
 <makefile>
 
     <if cond="FORMAT=='autoconf'">
@@ -32,6 +34,9 @@
         <define cond="FORMAT=='watcom' and PLATFORM_OS2=='1'">
             OS2_32
         </define>
+        <define cond="FORMAT=='watcom' and PLATFORM_MSDOS=='1'">
+            __MSDOS__
+        </define>
         <cflags-borland>-w-8004 -w-8008 -w-8012 -w-8057 -w-8066</cflags-borland>
         <sources>
             src/expat/lib/xmlparse.c
index a24db7b10eab1e4e3f47238a221c768e3816a10a..64002664cdfe1a699991abfade8405015130c328 100644 (file)
@@ -1544,6 +1544,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
     wx/mgl/app.h
     wx/mgl/bitmap.h
     wx/mgl/brush.h
+    wx/mgl/chkconf.h
     wx/mgl/clipbrd.h
     wx/mgl/colour.h
     wx/mgl/cursor.h
index bf322798cd9d6e2c6ee2719edc5cedec3a87d44c..7a15de891a332bfb3a4091e87fec4968a7cbf5c8 100644 (file)
@@ -1,4 +1,6 @@
 <?xml version="1.0" ?>
+<!-- $Id$ -->
+
 <makefile>
 
     <if cond="FORMAT=='autoconf'">
@@ -43,6 +45,7 @@
         <cflags-borland>-w-8004 -w-8012 -w-8057 -w-8060 -w-8066</cflags-borland>
         <cflags-dmars>-w2</cflags-dmars>
         <define cond="PLATFORM_OS2=='1' and FORMAT=='watcom'">OS2_32</define>
+        <define cond="PLATFORM_MSDOS=='1' and FORMAT=='watcom'">__MSDOS__</define>
         <sources>
             $(TIFF_PLATFORM_SRC)
             src/tiff/tif_aux.c
index d5766c93d31e9830d74fe91697082358beee70a3..48677540e11eef5898ccf0476fa21027410831fe 100644 (file)
@@ -25,6 +25,8 @@
 #  include "wx/mac/chkconf.h"
 #elif defined(__OS2__)
 #  include "wx/os2/chkconf.h"
+#elif defined(__WXMGL__)
+#  include "wx/mgl/chkconf.h"
 #elif defined(__WXMOTIF__)
 #  include "wx/motif/chkconf.h"
 #endif
diff --git a/include/wx/mgl/chkconf.h b/include/wx/mgl/chkconf.h
new file mode 100644 (file)
index 0000000..c8664d4
--- /dev/null
@@ -0,0 +1,81 @@
+/*
+ * Name:        wx/mgl/chkconf.h
+ * Purpose:     Compiler-specific configuration checking
+ * Author:      Julian Smart
+ * Modified by:
+ * Created:     01/02/97
+ * RCS-ID:      $Id$
+ * Copyright:   (c) Julian Smart
+ * Licence:     wxWindows licence
+ */
+
+/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
+
+#ifndef _WX_MGL_CHKCONF_H_
+#define _WX_MGL_CHKCONF_H_
+
+#ifdef __WATCOMC__
+
+/* Watcom builds for MGL port are setup.h driven and setup.h is
+   automatically generated from include/wx/setup_inc.h so we have
+   to disable here features not supported currently or enable
+   features required */
+
+#if wxUSE_STACKWALKER
+#   undef wxUSE_STACKWALKER
+#   define wxUSE_STACKWALKER 0
+#endif /* wxUSE_STACKWALKER */
+
+#if wxUSE_ACCEL
+#   undef wxUSE_ACCEL
+#   define wxUSE_ACCEL 0
+#endif /* wxUSE_ACCEL */
+
+#if wxUSE_DYNLIB_CLASS
+#   undef wxUSE_DYNLIB_CLASS
+#   define wxUSE_DYNLIB_CLASS 0
+#endif /* wxUSE_DYNLIB_CLASS */
+
+#if wxUSE_DYNAMIC_LOADER
+#   undef wxUSE_DYNAMIC_LOADER
+#   define wxUSE_DYNAMIC_LOADER 0
+#endif /* wxUSE_DYNAMIC_LOADER */
+
+#if wxUSE_ODBC
+#   undef wxUSE_ODBC
+#   define wxUSE_ODBC 0
+#endif /* wxUSE_ODBC */
+
+#if wxUSE_DATAOBJ
+#   undef wxUSE_DATAOBJ
+#   define wxUSE_DATAOBJ 0
+#endif
+
+#if wxUSE_CLIPBOARD
+#   undef wxUSE_CLIPBOARD
+#   define wxUSE_CLIPBOARD 0
+#endif /* wxUSE_CLIPBOARD */
+
+#if wxUSE_SOCKETS
+#   undef wxUSE_SOCKETS
+#   define wxUSE_SOCKETS 0
+#endif /* wxUSE_SOCKETS */
+
+#if wxUSE_PROTOCOL
+#   undef wxUSE_PROTOCOL
+#   define wxUSE_PROTOCOL 0
+#endif /* wxUSE_PROTOCOL */
+
+#if wxUSE_URL
+#   undef wxUSE_URL
+#   define wxUSE_URL 0
+#endif /* wxUSE_URL */
+
+#if wxUSE_FS_INET
+#   undef wxUSE_FS_INET
+#   define wxUSE_FS_INET 0
+#endif /* wxUSE_FS_INET */
+
+#endif /* __WATCOM__ */
+
+#endif /* _WX_MGL_CHKCONF_H_ */
index abdb7d02a2f3e1a824eda2d636367341fcf3b4fb..69178254fa8aac457a99a4ae5896cf95e1e1cb9a 100644 (file)
 #   include "wx/os2/private.h"
 #endif
 
+// include mgl headers
+#ifdef __WXMGL__
+#   include "wx/mgl/private.h"
+#endif
+
 // include the most common wx headers
 #include "wx/wx.h"
 
diff --git a/src/expat/lib/dosconfig.h b/src/expat/lib/dosconfig.h
new file mode 100644 (file)
index 0000000..accde34
--- /dev/null
@@ -0,0 +1,25 @@
+/*================================================================
+** Copyright 2000, Clark Cooper
+** All rights reserved.
+**
+** This is free software. You are permitted to copy, distribute, or modify
+** it under the terms of the MIT/X license (contained in the COPYING file
+** with this distribution.)
+*/
+
+#ifndef DOSCONFIG_H
+#define DOSCONFIG_H
+
+#include <memory.h>
+#include <string.h>
+
+#define XML_NS 1
+#define XML_DTD 1
+#define XML_CONTEXT_BYTES 1024
+
+/* we will assume all DOS platforms are little endian */
+#define BYTEORDER 1234
+
+#define HAVE_BCOPY
+
+#endif /* ndef DOSCONFIG_H */
index 561d09523e210cfb29e024e3078274408ae19d97..7dbabe8124a69fdf546a29a885cb6a5004561871 100644 (file)
 #include "os2config.h"
 #include "expat.h"
 
+#elif defined(__MSDOS__)
+
+#include "dosconfig.h"
+#include "expat.h"
+
 #elif defined(MACOS_CLASSIC)
 
 #include "macconfig.h"
index 73c3ae95f21e3798ed4f9ae446f9ddb7bebf0cbb..79d12d53aad280c3e2514a7c9fbd500dbdaf3d34 100644 (file)
@@ -6,6 +6,8 @@
 #include "winconfig.h"
 #elif defined(OS2_32)
 #include "os2config.h"
+#elif defined(__MSDOS__)
+#include "dosconfig.h"
 #elif defined(MACOS_CLASSIC)
 #include "macconfig.h"
 #else
index 9188afebf1ab35752ab53915bcdb763c9dd6baa4..9ed6d0333d6fd1534d5b76737830d810b2e21926 100644 (file)
@@ -6,6 +6,8 @@
 #include "winconfig.h"
 #elif defined(OS2_32)
 #include "os2config.h"
+#elif defined(__MSDOS__)
+#include "dosconfig.h"
 #elif defined(MACOS_CLASSIC)
 #include "macconfig.h"
 #else