Quellcode durchsuchen

arch.h: Add #includes necessary for default implentation of LWIP_PLATFORM_DIAG and LWIP_PLATFORM_ASSERT

Dirk Ziegelmeier vor 9 Jahren
Ursprung
Commit
b8bc7b7c71
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      src/include/lwip/arch.h

+ 4 - 0
src/include/lwip/arch.h

@@ -73,12 +73,16 @@
 /** Platform specific diagnostic output */
 #ifndef LWIP_PLATFORM_DIAG
 #define LWIP_PLATFORM_DIAG(x)	do {printf x;} while(0)
+#include <stdio.h>
+#include <stdlib.h>
 #endif
 
 /** Platform specific assertion handling */
 #ifndef LWIP_PLATFORM_ASSERT
 #define LWIP_PLATFORM_ASSERT(x) do {printf("Assertion \"%s\" failed at line %d in %s\n", \
                                      x, __LINE__, __FILE__); fflush(NULL); abort();} while(0)
+#include <stdio.h>
+#include <stdlib.h>
 #endif
 
 /** Define this to 1 in arch/cc.h of your port if you do not want to