X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/30c841c84dce46690499567141b98ffcf5a61b6a..99d21c0e1f8d87570702c52dccd3ad698f0a0931:/include/wx/overlay.h

diff --git a/include/wx/overlay.h b/include/wx/overlay.h
index b99b850aa8..a5e2d97be6 100644
--- a/include/wx/overlay.h
+++ b/include/wx/overlay.h
@@ -14,14 +14,12 @@
 
 #include "wx/defs.h"
 
-#ifndef wxHAS_NATIVE_OVERLAY
-    #if defined(wxMAC_USE_CORE_GRAPHICS) && wxMAC_USE_CORE_GRAPHICS
-        #define wxHAS_NATIVE_OVERLAY 1
-    #elif defined(__WXDFB__)
-        #define wxHAS_NATIVE_OVERLAY 1
-    #else
-        #define wxHAS_NATIVE_OVERLAY 0
-    #endif
+#if defined(wxMAC_USE_CORE_GRAPHICS) && wxMAC_USE_CORE_GRAPHICS
+    #define wxHAS_NATIVE_OVERLAY 1
+#elif defined(__WXDFB__)
+    #define wxHAS_NATIVE_OVERLAY 1
+#else
+    // don't define wxHAS_NATIVE_OVERLAY
 #endif
 
 // ----------------------------------------------------------------------------
@@ -30,8 +28,8 @@
 // internal code
 // ----------------------------------------------------------------------------
 
-class WXDLLEXPORT wxOverlayImpl;
-class WXDLLEXPORT wxWindowDC;
+class WXDLLIMPEXP_FWD_CORE wxOverlayImpl;
+class WXDLLIMPEXP_FWD_CORE wxWindowDC;
 
 class WXDLLEXPORT wxOverlay
 {
@@ -47,7 +45,7 @@ public:
     wxOverlayImpl *GetImpl() { return m_impl; }
 
 private:
-    friend class WXDLLEXPORT wxDCOverlay;
+    friend class WXDLLIMPEXP_FWD_CORE wxDCOverlay;
 
     // returns true if it has been setup
     bool IsOk();