]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/longlong.cpp
patches for BC++ 5.3 from Ricky Gonzales <gonzales@pyramid3.net>
[wxWidgets.git] / src / common / longlong.cpp
index fd0c992c3fc9a1f57b06cc8d9664c845b14643ed..5493e0bfca3fb970bf4fd3f70fd592b51a67ea5f 100644 (file)
@@ -57,6 +57,8 @@ void *wxLongLongNative::asArray(void) const
     return temp;
 }
 
     return temp;
 }
 
+#if wxUSE_STD_IOSTREAM
+
 // input/output
 ostream& operator<< (ostream& o, const wxLongLongNative& ll)
 {
 // input/output
 ostream& operator<< (ostream& o, const wxLongLongNative& ll)
 {
@@ -74,6 +76,8 @@ ostream& operator<< (ostream& o, const wxLongLongNative& ll)
     return o << result;
 }
 
     return o << result;
 }
 
+#endif // wxUSE_STD_IOSTREAM
+
 #endif // wxUSE_LONGLONG_NATIVE
 
 #if wxUSE_LONGLONG_WX
 #endif // wxUSE_LONGLONG_NATIVE
 
 #if wxUSE_LONGLONG_WX
@@ -419,7 +423,9 @@ wxLongLongWx& wxLongLongWx::operator*=(const wxLongLongWx& ll)
 
 // division
 
 
 // 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))
     {
 {
     if ((divisor.m_lo == 0) && (divisor.m_hi == 0))
     {
@@ -449,8 +455,9 @@ void *wxLongLongWx::asArray(void) const
     return temp;
 }
 
     return temp;
 }
 
-// input/output
+#if wxUSE_STD_IOSTREAM
 
 
+// input/output
 ostream& operator<< (ostream& o, const wxLongLongWx& ll)
 {
     char result[65];
 ostream& operator<< (ostream& o, const wxLongLongWx& ll)
 {
     char result[65];
@@ -467,7 +474,8 @@ ostream& operator<< (ostream& o, const wxLongLongWx& ll)
 
     return o << result;
 }
 
     return o << result;
 }
-#endif
-  // wxUSE_LONGLONG_NATIVE
+#endif // wxUSE_STD_IOSTREAM
+
+#endif // wxUSE_LONGLONG_NATIVE
 
 #endif // wxUSE_LONGLONG
 
 #endif // wxUSE_LONGLONG