diff options
author | madpilot <madpilot@FreeBSD.org> | 2013-09-28 00:26:11 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2013-09-28 00:26:11 +0800 |
commit | ae1c7b16b4403456415a161707cca7005fbd2cfb (patch) | |
tree | 0c06fa2bb17ffefb136062d6e769fb76d7fed4ad /games | |
parent | 869b4498b751f810613cb08aa06e048c83e16209 (diff) | |
download | freebsd-ports-gnome-ae1c7b16b4403456415a161707cca7005fbd2cfb.tar.gz freebsd-ports-gnome-ae1c7b16b4403456415a161707cca7005fbd2cfb.tar.zst freebsd-ports-gnome-ae1c7b16b4403456415a161707cca7005fbd2cfb.zip |
Fix build with clang/libc++ on head.
Provided by: gahr
Diffstat (limited to 'games')
-rw-r--r-- | games/netpanzer/files/patch-src_Lib_optionmm_command_line.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/games/netpanzer/files/patch-src_Lib_optionmm_command_line.hpp b/games/netpanzer/files/patch-src_Lib_optionmm_command_line.hpp new file mode 100644 index 000000000000..f61f3f3041c5 --- /dev/null +++ b/games/netpanzer/files/patch-src_Lib_optionmm_command_line.hpp @@ -0,0 +1,17 @@ +--- src/Lib/optionmm/command_line.hpp.orig 2013-09-27 10:31:25.000000000 +0200 ++++ src/Lib/optionmm/command_line.hpp 2013-09-27 10:38:10.000000000 +0200 +@@ -212,7 +212,13 @@ + { + x = !x; + } +-#if defined(__GNUC__) && __GNUC__ >= 2 ++ ++#if defined(__clang__) ++ inline void operator()(std::__bit_reference<std::vector<bool> > x) ++ { ++ x.flip(); ++ } ++#elif defined(__GNUC__) && __GNUC__ >= 2 + inline void operator()(std::_Bit_reference x) + { + x.flip(); |