From 001e664ff7eb8d06c56b42f8aa5a68227192ec1c Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 7 Feb 2013 20:12:04 +0100 Subject: curl_memory.h: introduce CURLX_NO_MEMORY_CALLBACKS usage possibility This commit alone does not fix anything nor modifies existing interfaces or behaviors, although it is a prerequisite for other fixes. --- lib/easy.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/easy.c') 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 #endif -- cgit v1.2.3