Skip to content

Commit

Permalink
Update doctest to 2.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
AzothAmmo committed Jan 10, 2022
1 parent 8291f44 commit a64b811
Show file tree
Hide file tree
Showing 4 changed files with 250 additions and 104 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test cereal
name: cereal mac ci
on: [push, pull_request]

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test cereal
name: cereal linux ci
on: [push, pull_request]

jobs:
Expand Down
10 changes: 10 additions & 0 deletions unittests/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@
#include <limits>
#include <random>

// gcc 4.7 thread_local workaround for doctest
#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ < 8
#define DOCTEST_THREAD_LOCAL
#endif // gcc 4.7

// MSVC 2013 workaround for doctest
#if defined(_MSC_VER) && _MSC_VER < 1900
__pragma(warning(disable : 4715))
#endif // _MSC_VER

#include "doctest.h"

namespace std
Expand Down
Loading

0 comments on commit a64b811

Please sign in to comment.