From 9f4829be132bbdb5baccaea472829fc8b9133bbf Mon Sep 17 00:00:00 2001 From: "Christian W. Zuckschwerdt" Date: Wed, 6 Nov 2019 17:16:50 +0100 Subject: [PATCH] Fix define collision with Mongoose --- include/fatal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fatal.h b/include/fatal.h index bbfb3f9a..f451d04e 100644 --- a/include/fatal.h +++ b/include/fatal.h @@ -12,8 +12,8 @@ #ifndef INCLUDE_FATAL_H_ #define INCLUDE_FATAL_H_ -#define STR(x) #x -#define STRINGIFY(x) STR(x) +#define STRINGIFYX(x) #x +#define STRINGIFY(x) STRINGIFYX(x) #define FILE_LINE __FILE__ ":" STRINGIFY(__LINE__) #define FATAL(what) do { fprintf(stderr, "FATAL: " what " from " FILE_LINE "\n"); exit(1); } while (0) #define FATAL_MALLOC(what) FATAL("low memory? malloc() failed in " what)