summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/asio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/asio.h')
-rw-r--r--src/osd/asio.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/osd/asio.h b/src/osd/asio.h
new file mode 100644
index 00000000000..6217a5b56fa
--- /dev/null
+++ b/src/osd/asio.h
@@ -0,0 +1,24 @@
+// license:BSD-3-Clause
+// copyright-holders:Miodrag Milanovic
+/***************************************************************************
+
+ asio.hpp
+
+ ASIO library implementation loader
+
+***************************************************************************/
+
+#ifdef __clang__
+#pragma clang diagnostic ignored "-Winconsistent-missing-override"
+#elif defined(__GNUC__)
+#pragma GCC diagnostic ignored "-Wsuggest-override"
+#endif
+
+#define ASIO_HEADER_ONLY
+#define ASIO_STANDALONE
+#define ASIO_SEPARATE_COMPILATION
+#define ASIO_NOEXCEPT noexcept(true)
+#define ASIO_NOEXCEPT_OR_NOTHROW noexcept(true)
+#define ASIO_ERROR_CATEGORY_NOEXCEPT noexcept(true)
+
+#include "asio/include/asio.hpp"