summaryrefslogtreecommitdiff
path: root/src/Vendor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Vendor.c')
-rw-r--r--src/Vendor.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Vendor.c b/src/Vendor.c
index 4123ddc..3b282dc 100644
--- a/src/Vendor.c
+++ b/src/Vendor.c
@@ -46,6 +46,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
+/* $XFree86: xc/lib/Xt/Vendor.c,v 1.7 2002/05/31 18:45:46 dawes Exp $ */
/* Make sure all wm properties can make it out of the resource manager */
@@ -63,6 +64,24 @@ SOFTWARE.
*
***************************************************************************/
+#ifdef __UNIXOS2__
+/* to fix the EditRes problem because of wrong linker semantics */
+extern WidgetClass vendorShellWidgetClass;
+unsigned long _DLL_InitTerm(unsigned long mod,unsigned long flag)
+{
+ switch (flag) {
+ case 0: /*called on init*/
+ _CRT_init();
+ vendorShellWidgetClass = (WidgetClass)(&vendorShellClassRec);
+ return 1;
+ case 1: /*called on exit*/
+ return 1;
+ default:
+ return 0;
+ }
+}
+#endif
+
externaldef(vendorshellclassrec) VendorShellClassRec vendorShellClassRec = {
{
/* superclass */ (WidgetClass) &wmShellClassRec,