diff options
author | Yang Tse <yangsita@gmail.com> | 2013-02-07 20:12:04 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2013-03-14 19:47:05 +0100 |
commit | 001e664ff7eb8d06c56b42f8aa5a68227192ec1c (patch) | |
tree | bd7fd7735a0192e29bff384fc752b6b7b83abc93 /lib/easy.c | |
parent | 01dc954f8abe83747e698cc7a1a0d88fcae1380d (diff) |
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.
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 8 |
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 |