[Dnsmasq-discuss] [PATCH 1/1] complain if stdio.h is included too early
Christian Hesse
list at eworm.de
Thu Aug 24 07:52:47 BST 2017
From: Christian Hesse <mail at eworm.de>
Signed-off-by: Christian Hesse <mail at eworm.de>
---
src/dnsmasq.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/dnsmasq.h b/src/dnsmasq.h
index 24dda08..987b6eb 100644
--- a/src/dnsmasq.h
+++ b/src/dnsmasq.h
@@ -16,6 +16,12 @@
#define COPYRIGHT "Copyright (c) 2000-2017 Simon Kelley"
+/* We do defines that influence behavior of stdio.h, so complain
+ if included too early. */
+#ifdef _STDIO_H
+# error "Header file stdio.h included too early!"
+#endif
+
#ifndef NO_LARGEFILE
/* Ensure we can use files >2GB (log files may grow this big) */
# define _LARGEFILE_SOURCE 1
More information about the Dnsmasq-discuss
mailing list