Fix tests relying on emscripten maco before it is defined

This commit is contained in:
2026-07-30 15:06:58 +10:00
parent 70aee42856
commit 10e7b4ae82
6 changed files with 411 additions and 31 deletions
+6 -9
View File
@@ -1,5 +1,11 @@
#if DN_WITH_NET_CURL
#define DN_NO_WINDOWS_H_REPLACEMENT_HEADER
#define CURL_STATICLIB
#include <curl/curl.h>
#endif
#if defined(__EMSCRIPTEN__)
#define DN_WITH_NET_EMSCRIPTEN 1
#endif
#define DN_PARANOIA_LEVEL 1
@@ -7,15 +13,6 @@
#define DN_WITH_NET 1
#define DN_WITH_TESTS 1
#include "dn.h"
#if DN_WITH_NET_CURL
#define CURL_STATICLIB
#include <curl/curl.h>
#endif
#if defined(DN_PLATFORM_EMSCRIPTEN)
#define DN_WITH_NET_EMSCRIPTEN 1
#endif
#include "dn.cpp"
#define DN_SHA3_WITH_TESTS