Made cds::OS children namespaces inline, removed OS-specific syserror.h headers
[libcds.git] / cds / os / posix / alloc_aligned.h
index 664063f74f2f6433a18a146a6d68a185618e6266..b123a6424520db4aacbbbe844e909b00f4fae4ca 100644 (file)
@@ -14,7 +14,7 @@
 
 //@cond none
 namespace cds { namespace OS {
-    namespace posix {
+    CDS_CXX11_INLINE_NAMESPACE namespace posix {
         /// Allocates memory on a specified alignment boundary
         static inline void * aligned_malloc(
             size_t nSize,       ///< Size of the requested memory allocation
@@ -34,8 +34,10 @@ namespace cds { namespace OS {
         }
     }   // namespace posix
 
+#ifndef CDS_CXX11_INLINE_NAMESPACE_SUPPORT
     using posix::aligned_malloc;
     using posix::aligned_free;
+#endif
 
 }} // namespace cds::OS
 //@endcond