X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4ef67ba69bc432a49444dbfb74d70bc369bf0ab..243f5c2d917b77474b6d159fc338ec669d70cc91:/include/wx/defs.h diff --git a/include/wx/defs.h b/include/wx/defs.h index c5ad6d54d9..d4c2f50058 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -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 +#ifdef __BORLANDC__ +#define wxUnusedVar(identifier) identifier +#else template inline void wxUnusedVar(const T& WXUNUSED(t)) { } +#endif // ---------------------------------------------------------------------------- // compiler specific settings @@ -678,7 +682,7 @@ typedef wxUint16 wxWord; typedef int wxInt32; typedef unsigned int wxUint32; - #if defined (__MWERKS__) && defined(__MACH__) + #if defined(__MACH__) && !defined(SIZEOF_WCHAR_T) #define SIZEOF_WCHAR_T 4 #endif #if wxUSE_WCHAR_T && !defined(SIZEOF_WCHAR_T)