aboutsummaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 2739598ef..dc95a6d44 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -22,6 +22,14 @@
#include "curl_setup.h"
+/*
+ * See comment in curl_memory.h for the explanation of this sanity check.
+ */
+
+#ifdef CURLX_NO_MEMORY_CALLBACKS
+#error "libcurl shall not ever be built with CURLX_NO_MEMORY_CALLBACKS defined"
+#endif
+
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif