From 095c47c644edac28d1cb28f91191ae25c4357b90 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 17 Feb 2024 11:30:58 -0800 Subject: unifdef __UNIXOS2__ Signed-off-by: Alan Coopersmith --- src/Vendor.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/Vendor.c b/src/Vendor.c index 37a8a9f..08e7e41 100644 --- a/src/Vendor.c +++ b/src/Vendor.c @@ -112,7 +112,7 @@ void XawVendorShellExtResize(Widget); void XawVendorStructureNotifyHandler(Widget, XtPointer, XEvent*, Boolean*); -#if defined(__UNIXOS2__) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__APPLE__) +#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__APPLE__) /* to fix the EditRes problem because of wrong linker semantics */ extern WidgetClass vendorShellWidgetClass; /* from Xt/Vendor.c */ extern VendorShellClassRec _XawVendorShellClassRec; @@ -127,23 +127,6 @@ static void __VendorShellHack(void) } #endif -#if defined(__UNIXOS2__) -unsigned long _DLL_InitTerm(unsigned long mod,unsigned long flag) -{ - switch (flag) { - case 0: /*called on init*/ - _CRT_init(); - vendorShellWidgetClass = (WidgetClass)(&_XawVendorShellClassRec$ - _XawFixupVendorShell(); - return 1; - case 1: /*called on exit*/ - return 1; - default: - return 0; - } -} -#endif - #if defined(__CYGWIN__) || defined(__MINGW32__) int __stdcall DllMain(unsigned long, unsigned long, void *); @@ -487,7 +470,7 @@ XawVendorShellClassPartInit(WidgetClass class) } #endif -#if defined(__UNIXOS2__) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__APPLE__) +#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__APPLE__) /* shared libraries on these platforms have the wrong semantics */ /* symbols do not get resolved external to the shared library */ void -- cgit v1.2.3