Fix build with Borland C++ compiler.
Disable some parts of the code that this compiler had problems with. Add parentheses to work around its bugs elsewhere. Closes #12558. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1056,9 +1056,19 @@ typedef wxUint32 wxDword;
|
||||
#define wxULongLong_t unsigned wxLongLong_t
|
||||
#endif
|
||||
|
||||
/* these macros allow to define 64 bit constants in a portable way */
|
||||
#define wxLL(x) wxCONCAT(x, wxLongLongSuffix)
|
||||
#define wxULL(x) wxCONCAT(x, wxCONCAT(u, wxLongLongSuffix))
|
||||
/*
|
||||
wxLL() and wxULL() macros allow to define 64 bit constants in a
|
||||
portable way.
|
||||
*/
|
||||
#ifndef wxCOMPILER_BROKEN_CONCAT_OPER
|
||||
#define wxLL(x) wxCONCAT(x, wxLongLongSuffix)
|
||||
#define wxULL(x) wxCONCAT(x, wxCONCAT(u, wxLongLongSuffix))
|
||||
#else
|
||||
// Currently only Borland compiler has broken concatenation operator
|
||||
// and this compiler is known to use [u]i64 suffix.
|
||||
#define wxLL(x) wxAPPEND_i64(x)
|
||||
#define wxULL(x) wxAPPEND_ui64(x)
|
||||
#endif
|
||||
|
||||
typedef wxLongLong_t wxInt64;
|
||||
typedef wxULongLong_t wxUint64;
|
||||
|
Reference in New Issue
Block a user