aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_memory.h
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2015-03-24 23:12:03 +0100
committerDan Fandrich <dan@coneharvesters.com>2015-03-24 23:47:01 +0100
commit35648f2e799cf861b1acc9175e465e6fa5951775 (patch)
treeeb815d6a83cd8de966121944f3aa1da7a3d40dbe /lib/curl_memory.h
parentac2827ac09b1ef2ba2ffca0d8046bc0ad143a5d4 (diff)
curl_memory: make curl_memory.h the second-last header file loaded
This header file must be included after all header files except memdebug.h, as it does similar memory function redefinitions and can be similarly affected by conflicting definitions in system or dependent library headers.
Diffstat (limited to 'lib/curl_memory.h')
-rw-r--r--lib/curl_memory.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/curl_memory.h b/lib/curl_memory.h
index e3cdc721c..bc744ccd8 100644
--- a/lib/curl_memory.h
+++ b/lib/curl_memory.h
@@ -28,6 +28,9 @@
* File curl_memory.h must be included by _all_ *.c source files
* that use memory related functions strdup, malloc, calloc, realloc
* or free, and given source file is used to build libcurl library.
+ * It should be included immediately before memdebug.h as the last files
+ * included to avoid undesired interaction with other memory function
+ * headers in dependent libraries.
*
* There is nearly no exception to above rule. All libcurl source
* files in 'lib' subdirectory as well as those living deep inside