X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0cc66b6c0b7b50bfba244e4f8e48a9b071e75ae2..e128397f931f7a97316057588c6dfd70b1b9fd97:/include/wx/defs.h diff --git a/include/wx/defs.h b/include/wx/defs.h index f1fe077816..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 -template +#ifdef __BORLANDC__ +#define wxUnusedVar(identifier) identifier +#else +template 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 @@ -711,7 +718,7 @@ typedef wxUint32 wxDword; #define wxLongLongSuffix l #define wxLongLongFmtSpec _T("l") #define wxLongLongIsLong -#elif (defined(__VISUALC__) && defined(__WIN32__)) || defined( __VMS__ ) +#elif (defined(__VISUALC__) && defined(__WIN32__)) #define wxLongLong_t __int64 #define wxLongLongSuffix i64 #define wxLongLongFmtSpec _T("I64")