Made cds::OS children namespaces inline, removed OS-specific syserror.h headers
[libcds.git] / cds / os / posix / fake_topology.h
index c5f91c5c7c826432bca3ad41280cd99362c51806..4fca62f223d18a3932db638a9be7213b9614015d 100644 (file)
@@ -11,7 +11,7 @@
 #include <unistd.h>
 
 namespace cds { namespace OS {
-    namespace posix {
+    CDS_CXX11_INLINE_NAMESPACE namespace posix {
         /// Fake system topology
         struct topology {
             /// Logical processor count for the system. Always returns 1
@@ -44,7 +44,10 @@ namespace cds { namespace OS {
         };
     }   // namespace posix
 
+#ifndef CDS_CXX11_INLINE_NAMESPACE_SUPPORT
     using posix::topology;
+#endif
+
 }}  // namespace cds::OS
 
 #endif  // #ifndef __CDS_OS_POSIX_FAKE_TOPOLOGY_H