fix #105 EINTR handled too defensively when polling
[awesomized/libmemcached] / src / libmemcached / assert.hpp
index 062ebd9c8347c8a8b3dc3f4d82b37b478d3819c4..abad23d16d49e32f80b13de4fa3ce3b78ce8f740 100644 (file)
 
 #  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) \