]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/event.h
on xcode native we end up with several definitions otherwise
[wxWidgets.git] / include / wx / event.h
index 64146b5b1468857a76d8f1113aec1d3496b64a6e..4c915163a31d06b2b96f6ef43227305dd7dbe2b7 100644 (file)
@@ -57,11 +57,7 @@ typedef int wxEventType;
 
 // this is used to make the event table entry type safe, so that for an event
 // handler only a function with proper parameter list can be given.
-#ifdef HAVE_STATIC_CAST
-    #define wxStaticCastEvent(type, val) static_cast<type>(val)
-#else
-    #define wxStaticCastEvent(type, val) ((type)(val))
-#endif
+#define wxStaticCastEvent(type, val) wx_static_cast(type, val)
 
 // in previous versions of wxWindows the event types used to be constants
 // which created difficulties with custom/user event types definition