diff --git a/src/net/tcp_transport.cpp b/src/net/tcp_transport.cpp
index 90c6e31..0ad2b07 100644
--- a/src/net/tcp_transport.cpp
+++ b/src/net/tcp_transport.cpp
@@ -1,4 +1,9 @@
 #include "net/tcp_transport.hpp"
+
+// For UWP applications
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
+#define ASIO_WINDOWS_APP
+#endif
 #include <asio.hpp>
 #include <chrono>
 #include <functional>
diff --git a/src/net/udp_transport.cpp b/src/net/udp_transport.cpp
index f958a88..fc56509 100644
--- a/src/net/udp_transport.cpp
+++ b/src/net/udp_transport.cpp
@@ -1,4 +1,9 @@
 #include "net/udp_transport.hpp"
+
+// For UWP applications
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
+#define ASIO_WINDOWS_APP
+#endif
 #include <asio.hpp>
 #include <chrono>
 #include <functional>
