summaryrefslogtreecommitdiff
path: root/geography/geos/patches/patch-util_geosop_cxxopts.hpp
blob: f006623407a892370bb8049a66743457e0ebd442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-util_geosop_cxxopts.hpp,v 1.1 2022/03/27 13:33:21 tnn Exp $

On at least modern SunOS, int8_t is typedef'd to char, so parse_value()
that operates on int8_t& conflicts with the one that operates on char&.

--- util/geosop/cxxopts.hpp.orig	2022-01-15 21:14:55.000000000 +0000
+++ util/geosop/cxxopts.hpp
@@ -677,12 +677,14 @@ namespace cxxopts
       integer_parser(text, value);
     }
 
+#if !defined(__sun)
     inline
     void
     parse_value(const std::string& text, int8_t& value)
     {
       integer_parser(text, value);
     }
+#endif
 
     inline
     void