ソースを参照

兼容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">

読み込み中…
キャンセル
保存