]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/control.cpp
corrected conditional compilation for Universal Interfaces (3.4 or later)
[wxWidgets.git] / src / mac / carbon / control.cpp
index 9f495d36efbd710171eb35f448c5edb7add4c4f2..df3790521ac6fdc21f547c9c520369da1dbe313d 100644 (file)
@@ -70,7 +70,7 @@ wxControl::wxControl()
 
        if ( wxMacLiveScrollbarActionUPP == NULL )
        {
-#ifdef __UNIX__
+#if defined(UNIVERSAL_INTERFACES_VERSION) && (UNIVERSAL_INTERFACES_VERSION >= 0x0340)
         wxMacLiveScrollbarActionUPP = NewControlActionUPP( wxMacLiveScrollbarActionProc );
 #else
                wxMacLiveScrollbarActionUPP = NewControlActionProc( wxMacLiveScrollbarActionProc ) ;