Commit db2e0e7
committed
[libc++] Check for _newlib_version.h in addition to picolibc.h
Fixes #152763.
#131921 added some code to
pull in a definition of _NEWLIB_VERSION if it exists. It does this
by checking __has_include(<picolibc.h>) and including it if so.
However, this does not work for systems that have newlib rather
than picolibc. With this change, we check for either picolibc.h
or _newlib_version.h, which works for both newlib and picolibc.1 parent e92b7e9 commit db2e0e7
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
0 commit comments