浏览代码

兼容gcc 10

tags/2.9.10
tearshark 4 年前
父节点
当前提交
b6328a4833
共有 4 个文件被更改,包括 9 次插入5 次删除
  1. 4
    4
      librf/src/config.h
  2. 1
    1
      tutorial/gcc_bugs.cpp
  3. 1
    0
      vs_proj/librf.vcxproj
  4. 3
    0
      vs_proj/librf.vcxproj.filters

+ 4
- 4
librf/src/config.h 查看文件

@@ -2,9 +2,9 @@

#ifndef RESUMEF_INLINE_STATE
#if defined(__clang__) || defined(_MSC_VER)
/* #undef RESUMEF_INLINE_STATE */
#define RESUMEF_INLINE_STATE 1
#else
/* #undef RESUMEF_INLINE_STATE */
#define RESUMEF_INLINE_STATE 1
#endif //defined(__clang__) || defined(_MSC_VER)
#endif //RESUMEF_INLINE_STATE

@@ -14,9 +14,9 @@

#ifndef RESUMEF_ENABLE_CONCEPT
#ifdef __cpp_lib_concepts
/* #undef RESUMEF_ENABLE_CONCEPT */
#define RESUMEF_ENABLE_CONCEPT 0
#else
/* #undef RESUMEF_ENABLE_CONCEPT */
#define RESUMEF_ENABLE_CONCEPT 0
#endif //#ifdef __cpp_lib_concepts
#endif //#ifndef RESUMEF_ENABLE_CONCEPT


+ 1
- 1
tutorial/gcc_bugs.cpp 查看文件

@@ -9,7 +9,7 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#include "librf.h"
using namespace resumef;

#define GCC_FIX_BUGS 1
#define GCC_FIX_BUGS 0

static future_t<> gcc_bugs_if_await(event_t e)
{

+ 1
- 0
vs_proj/librf.vcxproj 查看文件

@@ -193,6 +193,7 @@
<ClCompile Include="..\librf\src\timer.cpp" />
<ClCompile Include="..\librf\src\when_v2.cpp" />
<ClCompile Include="..\test_librf.cpp" />
<ClCompile Include="..\tutorial\gcc_bugs.cpp" />
<ClCompile Include="..\tutorial\test_async_cb.cpp" />
<ClCompile Include="..\tutorial\test_async_channel.cpp" />
<ClCompile Include="..\tutorial\test_async_channel_mult_thread.cpp" />

+ 3
- 0
vs_proj/librf.vcxproj.filters 查看文件

@@ -124,6 +124,9 @@
<ClCompile Include="..\test_librf.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\tutorial\gcc_bugs.cpp">
<Filter>tutorial</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\librf\librf.h">

正在加载...
取消
保存