]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/longlong.cpp
Small bugfix
[wxWidgets.git] / src / common / longlong.cpp
index 4303386f7c7517007a1b10200ee3685596abc7b3..29a4f867b95e32092db275a7208c451104e4a872 100644 (file)
@@ -25,6 +25,8 @@
     #pragma hdrstop
 #endif
 
+#if wxUSE_LONGLONG
+
 #include "wx/longlong.h"
 
 #include <memory.h>     // for memset()
@@ -55,8 +57,10 @@ void *wxLongLongNative::asArray(void) const
     return temp;
 }
 
+#if wxUSE_STD_IOSTREAM
+
 // input/output
-std::ostream& operator<< (std::ostream& o, const wxLongLongNative& ll)
+ostream& operator<< (ostream& o, const wxLongLongNative& ll)
 {
     char result[65];
 
@@ -72,6 +76,8 @@ std::ostream& operator<< (std::ostream& o, const wxLongLongNative& ll)
     return o << result;
 }
 
+#endif // wxUSE_STD_IOSTREAM
+
 #endif // wxUSE_LONGLONG_NATIVE
 
 #if wxUSE_LONGLONG_WX
@@ -447,9 +453,10 @@ void *wxLongLongWx::asArray(void) const
     return temp;
 }
 
-// input/output
+#if wxUSE_STD_IOSTREAM
 
-std::ostream& operator<< (std::ostream& o, const wxLongLongWx& ll)
+// input/output
+ostream& operator<< (ostream& o, const wxLongLongWx& ll)
 {
     char result[65];
 
@@ -465,5 +472,8 @@ std::ostream& operator<< (std::ostream& o, const wxLongLongWx& ll)
 
     return o << result;
 }
-#endif wxUSE_LONGLONG_WX
+#endif // wxUSE_STD_IOSTREAM
+
+#endif // wxUSE_LONGLONG_NATIVE
 
+#endif // wxUSE_LONGLONG