Add wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG symbol.
Instead of writing a rather unreadable "defined(wxLongLong_t) && !defined(wxLongLongIsLong)" expression every time we need to decide if a function needs to be overloaded for both long and long long, add a new symbol which can be tested directly. No real changes in the code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2121,7 +2121,7 @@ public:
|
||||
// insert an unsigned long into string
|
||||
wxString& operator<<(unsigned long ul)
|
||||
{ return (*this) << Format(wxT("%lu"), ul); }
|
||||
#if defined wxLongLong_t && !defined wxLongLongIsLong
|
||||
#ifdef wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
|
||||
// insert a long long if they exist and aren't longs
|
||||
wxString& operator<<(wxLongLong_t ll)
|
||||
{
|
||||
@@ -2132,7 +2132,7 @@ public:
|
||||
{
|
||||
return (*this) << Format("%" wxLongLongFmtSpec "u" , ull);
|
||||
}
|
||||
#endif // wxLongLong_t && !wxLongLongIsLong
|
||||
#endif // wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
|
||||
// insert a float into string
|
||||
wxString& operator<<(float f)
|
||||
{ return (*this) << Format(wxT("%f"), f); }
|
||||
|
Reference in New Issue
Block a user