fix alloca usage
[m6w6/libmemcached] / src / libmemcached / assert.hpp
index 4088c0f10e813b9cf4beb8c88d2fa209f202c7f1..abad23d16d49e32f80b13de4fa3ce3b78ce8f740 100644 (file)
 
 #  ifdef __cplusplus
 #    include <cstdarg>
+#    include <cstdlib>
 #    include <cstdio>
 #  else
 #    include <stdarg.h>
+#    include <stdlib.h>
 #    include <stdio.h>
 #  endif
 
+#  ifdef HAVE_ALLOCA_H
+#    include <alloca.h>
+#  endif
+
 #  include "libmemcached/backtrace.hpp"
 
 #  define assert_msg(__expr, __mesg) \