Skip to content

Commit 27129d4

Browse files
committed
Detect the UCRT library
1 parent 5d7491a commit 27129d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libcxx/include/__configuration/platform.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@
5353
_LIBCPP_PICOLIBC_VERSION_INT(maj, min, patch)
5454
#endif
5555

56+
#if __has_include(<corecrt.h>)
57+
# include <corecrt.h>
58+
# if defined(_UCRT)
59+
# define _LIBCPP_UCRT
60+
# endif
61+
#endif
62+
5663
#ifndef __BYTE_ORDER__
5764
# error \
5865
"Your compiler doesn't seem to define __BYTE_ORDER__, which is required by libc++ to know the endianness of your target platform"

0 commit comments

Comments
 (0)