summaryrefslogtreecommitdiff
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 04:00:14 +0200
commita36c175994d9701aa15d10ff948bcb0782b53612 (patch)
tree6363580ec7f80b675ca38985c97bf1071d330304
parentdc75458862bd490da9d824900efa604ab7876f21 (diff)
downloadgnulib-a36c175994d9701aa15d10ff948bcb0782b53612.tar.gz
oset-c++: Fix compilation error with MSVC 14.
* lib/gl_oset.hh: With MSVC, avoid 'friend'.
-rw-r--r--ChangeLog5
-rw-r--r--lib/gl_oset.hh2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ee53375b54..3142b87761 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2022-09-04 Bruno Haible <bruno@clisp.org>
+ oset-c++: Fix compilation error with MSVC 14.
+ * lib/gl_oset.hh: With MSVC, avoid 'friend'.
+
+2022-09-04 Bruno Haible <bruno@clisp.org>
+
glob tests: Fix link error on mingw.
* modules/glob-tests (Makefile.am): Link test-glob with $(LIBINTL).
diff --git a/lib/gl_oset.hh b/lib/gl_oset.hh
index 7443d645a1..2f8d6bda7e 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: