From ab365b8fff828d79aacbb1360f700e39db8ee4aa Mon Sep 17 00:00:00 2001 From: Max Lv Date: Wed, 14 Oct 2026 21:38:07 +0800 Subject: [PATCH] Include C++ headers before crypto.h in test_crypto_aead_cpp.cpp crypto.h defines min/max macros for the C sources; libstdc++ headers included after it fail to parse. --- tests/test_crypto_aead_cpp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_crypto_aead_cpp.cpp b/tests/test_crypto_aead_cpp.cpp index 9724581d..246c864f 100644 --- a/tests/test_crypto_aead_cpp.cpp +++ b/tests/test_crypto_aead_cpp.cpp @@ -10,12 +10,13 @@ #include -#include "crypto.h" #include "crypto/aead.hpp" -#include "netutils.h" -#include "ppbloom.h" #include "alloc_audit/alloc_probe.hpp" #include "test_helpers.hpp" + +#include "crypto.h" +#include "netutils.h" +#include "ppbloom.h" #include "utils.h" #undef min