]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/defs.h
Fix for problem with wxGetFileKind on WinCE
[wxWidgets.git] / include / wx / defs.h
index 5200bf4e44b3e34e433c3161a5a767a89a06e783..5194f0678626472bcd7966378d95df187a472349 100644 (file)
@@ -269,6 +269,9 @@ typedef int wxWindowID;
     #ifndef HAVE_STATIC_CAST
         #define HAVE_STATIC_CAST
     #endif
+    #ifndef HAVE_DYNAMIC_CAST
+        #define HAVE_DYNAMIC_CAST
+    #endif
 #endif /*  HAVE_CXX_CASTS */
 
 #ifdef HAVE_STATIC_CAST
@@ -277,6 +280,12 @@ typedef int wxWindowID;
     #define wx_static_cast(t, x) ((t)(x))
 #endif
 
+#ifdef HAVE_DYNAMIC_CAST
+    #define wx_dynamic_cast(t, x) dynamic_cast<t>(x)
+#else
+    #define wx_dynamic_cast(t, x) ((t)(x))
+#endif
+
 #ifdef HAVE_CONST_CAST
     #define wx_const_cast(t, x) const_cast<t>(x)
 #else
@@ -760,7 +769,7 @@ typedef wxUint16 wxWord;
 
             typedef long wxInt32;
             typedef unsigned long wxUint32;
-        #elif
+        #else
             /*  wxWidgets is not ready for 128bit systems yet... */
             #error "Unknown sizeof(int) value, what are you compiling for?"
         #endif
@@ -933,11 +942,14 @@ inline void *wxUIntToPtr(wxUIntPtr p)
         #define HAVE_SSIZE_T
     #endif
 #endif
+#if defined(__PALMOS__) && !defined(HAVE_SSIZE_T)
+    #define HAVE_SSIZE_T
+#endif
 #ifndef HAVE_SSIZE_T
     #if SIZEOF_SIZE_T == 4
         typedef wxInt32 ssize_t;
     #elif SIZEOF_SIZE_T == 8
-        typedef wxInt64 ssize_t
+        typedef wxInt64 ssize_t;
     #else
         #error "error defining ssize_t, size_t is not 4 or 8 bytes"
     #endif