]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/defs.h
Add wxBitmap::GetNSImage() which creates an autoreleased NSImage either
[wxWidgets.git] / include / wx / defs.h
index 06cc68c76665650c05f4f0861bcc2f1148f6d1b5..d4c2f5005876ca6127ad6bd5efb187902c492f42 100644 (file)
@@ -457,8 +457,12 @@ 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>
+#ifdef __BORLANDC__
+#define wxUnusedVar(identifier) identifier
+#else
+template <class T>
 inline void wxUnusedVar(const T& WXUNUSED(t)) { }
+#endif
 
 // ----------------------------------------------------------------------------
 // compiler specific settings
@@ -678,6 +682,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