summaryrefslogtreecommitdiff
path: root/gs/src/gsdll.c
diff options
context:
space:
mode:
authorRalph Giles <ralph.giles@artifex.com>2001-07-23 05:25:08 +0000
committerRalph Giles <ralph.giles@artifex.com>2001-07-23 05:25:08 +0000
commit263155c30ee632d3e652f8fd0e77003676e8ccf4 (patch)
tree3e312fb217ea142a8966eb891d8c71f1c750d52b /gs/src/gsdll.c
parent88cb753958f96c9a5f81d2134ffbbc604a3b3423 (diff)
Protect the export of 'hwndtext', required by macgsview, with platform #ifdefs to avoid conflicts with the win32 dll build.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@1620 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gsdll.c')
-rw-r--r--gs/src/gsdll.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gs/src/gsdll.c b/gs/src/gsdll.c
index c86644754..12f7e6e35 100644
--- a/gs/src/gsdll.c
+++ b/gs/src/gsdll.c
@@ -49,8 +49,10 @@
/* MacGSView still requires that hwnd be exported
through the old dll interface. We do that here,
but expect to remove it when that client has been
- ported to do the gsapi interface. */
+ ported to the gsapi interface. */
+#ifdef __MACOS__
extern HWND hwndtext;
+#endif
/****** SINGLE-INSTANCE HACK ******/
/* GLOBAL WARNING */
@@ -88,8 +90,10 @@ gsdll_init(GSDLL_CALLBACK callback, HWND hwnd, int argc, char * argv[])
/* ignore hwnd */
/* rest of MacGSView compatibilty hack */
+#ifdef __MACOS__
hwndtext=hwnd;
-
+#endif
+
/****** SINGLE-INSTANCE HACK ******/
pgsdll_callback = callback;
/****** SINGLE-INSTANCE HACK ******/