summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison-at-virgin.net>2008-04-23 10:18:15 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2008-04-23 10:18:15 +0100
commitfa7dd561c40ce3dcd8252b5eda09258836659d66 (patch)
treeacbe53253e1c6ef8b1d1473b591aaddc944ba0ea
parent8c0f99b1d1f0d5d3b734a43eddb10bd8c5397aed (diff)
Add MINGW32 definition
-rw-r--r--src/Vendor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Vendor.c b/src/Vendor.c
index 930c448..a23ea7b 100644
--- a/src/Vendor.c
+++ b/src/Vendor.c
@@ -114,7 +114,7 @@ static XtResource resources[] = {
*
***************************************************************************/
-#if defined(__UNIXOS2__) || defined(__CYGWIN__)
+#if defined(__UNIXOS2__) || defined(__CYGWIN__) || defined(__MINGW32__)
/* to fix the EditRes problem because of wrong linker semantics */
extern WidgetClass vendorShellWidgetClass; /* from Xt/Vendor.c */
extern VendorShellClassRec _XawVendorShellClassRec;
@@ -137,7 +137,7 @@ unsigned long _DLL_InitTerm(unsigned long mod,unsigned long flag)
}
#endif
-#if defined(__CYGWIN__)
+#if defined(__CYGWIN__) || defined(__MINGW32__)
int __stdcall
DllMain(unsigned long mod_handle, unsigned long flag, void *routine)
{
@@ -361,7 +361,7 @@ XawVendorShellClassPartInit(WidgetClass cclass)
}
}
-#if defined(__osf__) || defined(__UNIXOS2__) || defined(__CYGWIN__)
+#if defined(__osf__) || defined(__UNIXOS2__) || defined(__CYGWIN__) || defined(__MINGW32__)
/* stupid OSF/1 shared libraries have the wrong semantics */
/* symbols do not get resolved external to the shared library */
void _XawFixupVendorShell()