From 263155c30ee632d3e652f8fd0e77003676e8ccf4 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Mon, 23 Jul 2001 05:25:08 +0000 Subject: 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 --- gs/src/gsdll.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gs/src/gsdll.c') 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 ******/ -- cgit v1.2.3