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