mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-23 15:23:44 +02:00
14 lines
680 B
Diff
14 lines
680 B
Diff
# Makes the `BOOST_ASIO_CORO_YIELD` and `BOOST_ASIO_CORO_FORK` macros always use the `__COUNTER__` macro, even with non-MSVC compilers.
|
|
# Using `__LINE__` results in "duplicate case value" compilation errors when targeting PlayStation 3 due to some idiosyncrasy in how the __LINE__ macro is parsed in the really old GCC version it's using.
|
|
|
|
--- a/include/boost/asio/coroutine.hpp
|
|
+++ b/include/boost/asio/coroutine.hpp
|
|
@@ -319,7 +319,7 @@ private:
|
|
} \
|
|
else
|
|
|
|
-#if defined(_MSC_VER)
|
|
+#if true
|
|
# define BOOST_ASIO_CORO_YIELD BOOST_ASIO_CORO_YIELD_IMPL(__COUNTER__ + 1)
|
|
# define BOOST_ASIO_CORO_FORK BOOST_ASIO_CORO_FORK_IMPL(__COUNTER__ + 1)
|
|
#else // defined(_MSC_VER)
|