# ifdef _WIN32
# include <malloc.h>
-# elif HAVE_ALLOCA_H
-# include <alloca.h>
# endif
# 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) \