X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bedcdce08e1575b74250d2ebac4355a687ccf8d..ad0dc53bffdcc40f0b8528c30927d6ebc1fe9cbd:/src/common/longlong.cpp diff --git a/src/common/longlong.cpp b/src/common/longlong.cpp index 704f95e7f6..5493e0bfca 100644 --- a/src/common/longlong.cpp +++ b/src/common/longlong.cpp @@ -25,6 +25,8 @@ #pragma hdrstop #endif +#if wxUSE_LONGLONG + #include "wx/longlong.h" #include // for memset() @@ -55,6 +57,8 @@ void *wxLongLongNative::asArray(void) const return temp; } +#if wxUSE_STD_IOSTREAM + // input/output ostream& operator<< (ostream& o, const wxLongLongNative& ll) { @@ -72,6 +76,8 @@ ostream& operator<< (ostream& o, const wxLongLongNative& ll) return o << result; } +#endif // wxUSE_STD_IOSTREAM + #endif // wxUSE_LONGLONG_NATIVE #if wxUSE_LONGLONG_WX @@ -417,7 +423,9 @@ wxLongLongWx& wxLongLongWx::operator*=(const wxLongLongWx& ll) // division -void wxLongLongWx::Divide(const wxLongLongWx& divisor, wxLongLongWx& quotient, wxLongLongWx& remainder) const +void wxLongLongWx::Divide(const wxLongLongWx& divisor, + wxLongLongWx& quotient, + wxLongLongWx& remainder) const { if ((divisor.m_lo == 0) && (divisor.m_hi == 0)) { @@ -447,8 +455,9 @@ void *wxLongLongWx::asArray(void) const return temp; } -// input/output +#if wxUSE_STD_IOSTREAM +// input/output ostream& operator<< (ostream& o, const wxLongLongWx& ll) { char result[65]; @@ -465,6 +474,8 @@ ostream& operator<< (ostream& o, const wxLongLongWx& ll) return o << result; } -#endif - // wxUSE_LONGLONG_NATIVE +#endif // wxUSE_STD_IOSTREAM + +#endif // wxUSE_LONGLONG_NATIVE +#endif // wxUSE_LONGLONG