Paul Eggert wrote:
> > +# if !defined _MSC_VER
> > +# define false false
> > +# define true true
> > +# endif
>
> How about using "#ifndef true" instead?
This will not work, as 'true' and 'false' are keywords, not macros, in C++ mode,
with this compiler.
> That will be more portable in
> the
On 9/4/22 09:25, Bruno Haible wrote:
+# if !defined _MSC_VER
+# define false false
+# define true true
+# endif
How about using "#ifndef true" instead? That will be more portable in
the presence of other platforms with this portability issue.
93: test-list-c++.obj] Error 2
and likewise for test-map-c++.cc, test-omap-c++.cc, test-oset-c++.cc,
test-set-c++.cc. This patch fixes it.
2022-09-04 Bruno Haible
stdbool: Fix compilation error in C++ mode with MSVC 14.
* lib/stdbool.in.h (_Bool, bool, false, true): In C++ mode w