]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/defs.h
Patch #826420, and also adapted to new SWIG
[wxWidgets.git] / include / wx / defs.h
index 06cc68c76665650c05f4f0861bcc2f1148f6d1b5..4929dec125feef80abbd7b7766485e1eae1be21b 100644 (file)
@@ -457,7 +457,7 @@ typedef int wxWindowID;
 
 // sometimes the value of a variable is *really* not used, to suppress  the
 // resulting warning you may pass it to this function
-template <typename T>
+template <class T>
 inline void wxUnusedVar(const T& WXUNUSED(t)) { }
 
 // ----------------------------------------------------------------------------
@@ -678,6 +678,9 @@ typedef wxUint16 wxWord;
         typedef int wxInt32;
         typedef unsigned int wxUint32;
 
+               #if defined(__MACH__) && !defined(SIZEOF_WCHAR_T)
+                       #define SIZEOF_WCHAR_T 4
+               #endif
         #if wxUSE_WCHAR_T && !defined(SIZEOF_WCHAR_T)
             // also assume that sizeof(wchar_t) == 2 (under Unix the most
             // common case is 4 but there configure would have defined