]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
urldate: undef hideous memory defines
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 Dec 2010 23:53:37 +0000 (00:53 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 15 Dec 2010 15:05:17 +0000 (16:05 +0100)
The public axTLS header (at least as of 1.2.7) redefines the memory
functions. We #undef those again immediately after the public header to
limit the damage. This should be fixed in axTLS.

lib/urldata.h

index 47f5f79628aee12b6442e5d9c90b02828ee1c234..83b646ea5c0323d67fec0ddeddbb305c03ca2f9e 100644 (file)
 
 #ifdef USE_AXTLS
 #include <axTLS/ssl.h>
+#undef malloc
+#undef calloc
+#undef realloc
 #endif /* USE_AXTLS */
 
 #ifdef HAVE_NETINET_IN_H