[libcxx-commits] [PATCH] D91133: [2/N] [libcxx] [test] Add a test for conversions between wchar_t, utf8, char16_t, char32_t and windows native narrow code pages

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 3 10:34:38 PST 2020


ldionne added inline comments.


================
Comment at: libcxx/test/std/input.output/filesystems/class.path/path.member/path.charconv.pass.cpp:42
+// libstdc++ doesn't define conversions from/to wchar_t outside of windows.
+#if defined(_WIN32) || !defined(__GLIBCXX__)
+#define HAVE_WCHAR
----------------
I think this would read better if you used this instead:

```
#if defined(__GLIBCXX__) && !defined(_WIN32)
#  define HAS_NO_WCHAR
#endif
```

WDYT?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91133/new/

https://reviews.llvm.org/D91133



More information about the libcxx-commits mailing list