Update networking layer w/ CURL and emscripten impl
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
#if defined(DN_UNIT_TESTS_WITH_CURL)
|
||||
#define DN_NO_WINDOWS_H_REPLACEMENT_HEADER
|
||||
#endif
|
||||
|
||||
#include "../dn_base_inc.h"
|
||||
#include "../dn_os_inc.h"
|
||||
#include "../dn_core_inc.h"
|
||||
@@ -12,6 +16,23 @@
|
||||
#include "../Extra/dn_math.cpp"
|
||||
#include "../Extra/dn_helpers.cpp"
|
||||
|
||||
#include "../Extra/dn_net2.h"
|
||||
#include "../Extra/dn_net2.cpp"
|
||||
|
||||
#if defined(DN_UNIT_TESTS_WITH_CURL)
|
||||
#define CURL_STATICLIB
|
||||
#include <curl/curl.h>
|
||||
#include "../Extra/dn_net_curl.h"
|
||||
#include "../Extra/dn_net_curl.cpp"
|
||||
#endif
|
||||
|
||||
#if defined(DN_PLATFORM_EMSCRIPTEN)
|
||||
#include <emscripten/emscripten.h>
|
||||
#include <emscripten/fetch.h>
|
||||
#include "../Extra/dn_net_emscripten.h"
|
||||
#include "../Extra/dn_net_emscripten.cpp"
|
||||
#endif
|
||||
|
||||
#define DN_UT_IMPLEMENTATION
|
||||
#include "../Standalone/dn_utest.h"
|
||||
#include "../Extra/dn_tests.cpp"
|
||||
|
||||
Reference in New Issue
Block a user