]> www.ginac.de Git - cln.git/blobdiff - src/base/cl_alloca.h
bump library version, since CLN doesn't export global object ctors any more.
[cln.git] / src / base / cl_alloca.h
index 6ed5a45a95b3306ae448cd418285b450d45e9ac5..e593be6a421d98433cd47d49a2fbeba51e63f26d 100644 (file)
@@ -4,7 +4,9 @@
 #define _CL_ALLOCA_H
 
 #include "cl_macros.h"
-#include <stdlib.h>
+#include <cstdlib>
+
+namespace cln {
 
 // Allocating temporary data of arbitrary size.
 // We prefer to allocate it on the stack instead of via malloc(), because
@@ -81,4 +83,6 @@ public:
   #define cl_small_alloc_array(arrayeltype,arraysize)  \
     (arrayeltype*)cl_small_alloca((arraysize)*sizeof(arrayeltype))
 
+}  // namespace cln
+
 #endif /* _CL_ALLOCA_H */