From: David Webster <Dave.Webster@bhmi.com>
Date: Thu, 13 Jan 2000 20:31:20 +0000 (+0000)
Subject: LINKAGEMODE under OS/2 is only applicable for VisualAge, not EMX or Watcom
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/02b6f53109f46b32a1f0d482ad3190874d277423

LINKAGEMODE under OS/2 is only applicable for VisualAge, not EMX or Watcom


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/include/wx/defs.h b/include/wx/defs.h
index 3a6376fd34..d1717e5a40 100644
--- a/include/wx/defs.h
+++ b/include/wx/defs.h
@@ -62,7 +62,10 @@
     #endif
 
     // Place other OS/2 compiler environment defines here
-    #define LINKAGEMODE _Optlink
+    #if defined(__VISAGECPP__)
+        // VisualAge is the only thing that understands _Optlink
+        #define LINKAGEMODE _Optlink
+    #endif
 #else   // Windows
     #ifndef __WINDOWS__
         #define __WINDOWS__