]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
src: move `memdebug.h` to be the last include
authorViktor Szakats <commit@vsz.me>
Thu, 20 Nov 2025 16:39:53 +0000 (17:39 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 21 Nov 2025 03:30:44 +0000 (04:30 +0100)
`memdebug.h` must be included last within each source. This breaks when
including it in a header, which ends up being included in the middle of
other headers, and `memdebug.h` also ending up in the middle of
includes.

Follow-up to c255d2fdcbf27b4bfd668ae3784bb657449d6889 #19602

Closes #19629

src/tool_cfgable.h
src/tool_ssls.c

index 717d35a1f522d7c1092d85ff7441c8e837c2ab9e..dc78f2db44f646d50f1e56f5113088d32a8e1d33 100644 (file)
@@ -29,7 +29,6 @@
 #include "tool_sdecls.h"
 #include "tool_urlglob.h"
 #include "var.h"
-#include "memdebug.h" /* keep this as LAST include */
 
 /* the type we use for storing a single boolean bit */
 #ifndef BIT
index ab78014c0a868b653b453b3cf73b9244071f2340..4c9d1ee0085732d60424c74b7b93c5123e302078 100644 (file)
@@ -30,6 +30,8 @@
 #include "tool_ssls.h"
 #include "tool_parsecfg.h"
 
+#include "memdebug.h" /* keep this as LAST include */
+
 /* The maximum line length for an ecoded session ticket */
 #define MAX_SSLS_LINE (64 * 1024)