From: Linux Karlsson Date: Thu, 24 May 2012 22:36:37 +0000 (+0200) Subject: [Bug 2193] Building timestruct tests with Clang 3.1 fails. X-Git-Tag: NTP_4_2_7P277~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3376d902d67b913cdc0e8c2d957ec78b0501affe;p=thirdparty%2Fntp.git [Bug 2193] Building timestruct tests with Clang 3.1 fails. bk: 4fbeb7f55NjMmLOw9xnfsQCzUy0UPQ --- diff --git a/ChangeLog b/ChangeLog index 2cca6add6..ed55b6c29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 2193] Building timestruct tests with Clang 3.1 fails. (4.2.7p276) 2012/05/15 Released by Harlan Stenn * [Bug 2179] Remove sntp/header.h. (4.2.7p275) 2012/04/28 Released by Harlan Stenn diff --git a/tests/libntp/timestructs.cpp b/tests/libntp/timestructs.cpp index ac7323dac..3cd0c543f 100644 --- a/tests/libntp/timestructs.cpp +++ b/tests/libntp/timestructs.cpp @@ -13,6 +13,8 @@ extern "C" { #include "timespecops.h" } +namespace timeStruct { + std::ostream& operator << (std::ostream& os, const timeStruct::l_fp_wrap& val) { @@ -49,8 +51,6 @@ operator << (std::ostream& os, const timeStruct::timespec_wrap& val) return os; } -namespace timeStruct { - // Implementation of the l_fp closeness predicate AssertFpClose::AssertFpClose( diff --git a/tests/libntp/timestructs.h b/tests/libntp/timestructs.h index 42be3725c..7bc4ffdcf 100644 --- a/tests/libntp/timestructs.h +++ b/tests/libntp/timestructs.h @@ -169,8 +169,6 @@ public: }; -} // namespace timeStruct - // since googletest wants to string format items, we declare the // necessary operators. Since all adaptors have only public members // there is need for friend declarations anywhere. @@ -182,4 +180,6 @@ extern std::ostream& operator << (std::ostream& os, extern std::ostream& operator << (std::ostream& os, const timeStruct::timespec_wrap& val); +} // namespace timeStruct + #endif // TIMESTRUCTS_H