]> www.ginac.de Git - cln.git/blobdiff - src/base/cl_alloca.h
Fix bug in converting cl_LF to float, double.
[cln.git] / src / base / cl_alloca.h
index 6ed5a45a95b3306ae448cd418285b450d45e9ac5..e7afe93292c68609e34e031fd9f9994c8f1d1cc9 100644 (file)
@@ -3,8 +3,10 @@
 #ifndef _CL_ALLOCA_H
 #define _CL_ALLOCA_H
 
-#include "cl_macros.h"
-#include <stdlib.h>
+#include "base/cl_macros.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 */