From f0c047e1f40ee2214fe1f73dc3bdc6b0f6de5d85 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Wed, 5 Feb 2003 07:59:09 +0000 Subject: - Changes for compiling with gcc 3.2 --- lib/psitime.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'lib/psitime.h') diff --git a/lib/psitime.h b/lib/psitime.h index 79fd521..73a5c87 100644 --- a/lib/psitime.h +++ b/lib/psitime.h @@ -27,6 +27,8 @@ #include #endif +#include + #if TIME_WITH_SYS_TIME # include # include @@ -41,7 +43,6 @@ #include #include -#include #include /** @@ -54,8 +55,8 @@ typedef struct psi_timeval_t { /** * Prints a psi_timeval in human readable format. */ - friend ostream &operator<<(ostream &o, const psi_timeval_t &ptv) { - ostream::fmtflags old = o.flags(); + friend std::ostream &operator<<(std::ostream &o, const psi_timeval_t &ptv) { + std::ostream::fmtflags old = o.flags(); u_int64_t micro = ptv.tv_high; micro = (micro << 32) | ptv.tv_low; micro /= 1000000; @@ -95,8 +96,8 @@ typedef struct psi_timeval_t { * holds a Psion time zone description. */ typedef struct psi_timezone_t { - friend ostream &operator<<(ostream &s, const psi_timezone_t &ptz) { - ostream::fmtflags old = s.flags(); + friend std::ostream &operator<<(std::ostream &s, const psi_timezone_t &ptz) { + std::ostream::fmtflags old = s.flags(); int h = ptz.utc_offset / 3600; int m = ptz.utc_offset % 3600; s << "offs: " << std::dec << h << "h"; @@ -291,7 +292,7 @@ public: * * @returns The stream. */ - friend ostream &operator<<(ostream &s, const PsiTime &t); + friend std::ostream &operator<<(std::ostream &s, const PsiTime &t); /** * Assignment operator @@ -310,7 +311,7 @@ public: PSI_TZ_EUROPEAN = 1, PSI_TZ_NORTHERN = 2, PSI_TZ_SOUTHERN = 4, - PSI_TZ_HOME = 0x40000000, + PSI_TZ_HOME = 0x40000000 }; private: -- cgit v1.2.3