Explorar o código

Added include for <stdlib.h> in debug build to provide implementation for exit() on mac (clang 11.0.0)

dprandle %!s(int64=4) %!d(string=hai) anos
pai
achega
c51e12bbed
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/civetweb.c

+ 1 - 0
src/civetweb.c

@@ -248,6 +248,7 @@ static void DEBUG_TRACE_FUNC(const char *func,
 
 #if !defined(DEBUG_ASSERT)
 #if defined(DEBUG)
+#include <stdlib.h>
 #define DEBUG_ASSERT(cond)                                                     \
 	do {                                                                       \
 		if (!(cond)) {                                                         \