summaryrefslogtreecommitdiff
path: root/lib/gl_oset.hh
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-09-05 00:14:48 +0200
committerBruno Haible <bruno@clisp.org>2022-09-05 00:14:48 +0200
commit3e99f32e957ac7f1f5b3dd464486cb192fb6dad4 (patch)
tree08ba5510ba6dbbf461004356126f4fa286d0c2cf /lib/gl_oset.hh
parentaa92cf3e6f9dd3587d2c0bd3fb3427f3d96f31f0 (diff)
downloadgnulib-3e99f32e957ac7f1f5b3dd464486cb192fb6dad4.tar.gz
oset-c++: Fix compilation error with MSVC 14.
* lib/gl_oset.hh: With MSVC, avoid 'friend'.
Diffstat (limited to 'lib/gl_oset.hh')
-rw-r--r--lib/gl_oset.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gl_oset.hh b/lib/gl_oset.hh
index 4fae4eb4d6..d0844638b7 100644
--- a/lib/gl_oset.hh
+++ b/lib/gl_oset.hh
@@ -153,7 +153,7 @@ public:
~iterator ()
{ gl_oset_iterator_free (&_state); }
- #if defined __xlC__ || defined __HP_aCC || defined __SUNPRO_CC || defined __EDG__
+ #if defined __xlC__ || defined __HP_aCC || defined __SUNPRO_CC || defined __EDG__ || (defined _MSC_VER && !defined __clang__)
public:
#else
private: