mirror of https://github.com/pybind/pybind11.git
Using `#undef _` before "#include <catch.hpp>", as suggested by @henryiii (#3747)
This commit is contained in:
parent
f5901b5465
commit
97862b126a
|
@ -45,7 +45,7 @@ jobs:
|
|||
python: '3.6'
|
||||
args: >
|
||||
-DPYBIND11_FINDPYTHON=ON
|
||||
# BREAKS -DCMAKE_CXX_FLAGS="-D_=1"
|
||||
-DCMAKE_CXX_FLAGS="-D_=1"
|
||||
- runs-on: windows-latest
|
||||
python: '3.6'
|
||||
args: >
|
||||
|
|
|
@ -57,7 +57,7 @@ jobs:
|
|||
python: '3.6'
|
||||
args: >
|
||||
-DPYBIND11_FINDPYTHON=ON
|
||||
# BREAKS -DCMAKE_CXX_FLAGS="-D_=1"
|
||||
-DCMAKE_CXX_FLAGS="-D_=1"
|
||||
- runs-on: windows-latest
|
||||
python: '3.6'
|
||||
args: >
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
#include "pybind11/detail/smart_holder_poc.h"
|
||||
|
||||
// Catch uses _ internally, which breaks gettext style defines
|
||||
#ifdef _
|
||||
# undef _
|
||||
#endif
|
||||
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include "catch.hpp"
|
||||
|
||||
|
|
Loading…
Reference in New Issue