diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-01-03 21:53:51 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-01-03 21:53:51 +0000 |
| commit | b2826a1ddc761fb6abcf8d80793a20387e9dc5f6 (patch) | |
| tree | da7f2a05031e7ee3b062a6f4aac11f2b544fca8f /libcxx/src/include | |
| parent | 8a41319d8d805dd1a8ba85f28eb111a822c4c45b (diff) | |
| download | bcm5719-llvm-b2826a1ddc761fb6abcf8d80793a20387e9dc5f6.tar.gz bcm5719-llvm-b2826a1ddc761fb6abcf8d80793a20387e9dc5f6.zip | |
clean up use of _WIN32
Replace the use of _WIN32 in libc++. Replace most use with a C runtime
check _LIBCPP_MSVCRT or the new _LIBCPP_WIN32 to indicate that we are
using the Win32 API. Use a new _LIBCPP_WCHAR_IS_UCS2 to indicate that we
are on an environment that has a short wchar_t.
llvm-svn: 290910
Diffstat (limited to 'libcxx/src/include')
| -rw-r--r-- | libcxx/src/include/config_elast.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/include/config_elast.h b/libcxx/src/include/config_elast.h index 53b3184d4c1..304685e6757 100644 --- a/libcxx/src/include/config_elast.h +++ b/libcxx/src/include/config_elast.h @@ -10,7 +10,7 @@ #ifndef _LIBCPP_CONFIG_ELAST #define _LIBCPP_CONFIG_ELAST -#if defined(_WIN32) +#if defined(_LIBCPP_MSCVRT) #include <stdlib.h> #else #include <errno.h> @@ -28,7 +28,7 @@ // No _LIBCPP_ELAST needed on Apple #elif defined(__sun__) #define _LIBCPP_ELAST ESTALE -#elif defined(_WIN32) +#elif defined(_LIBCPP_MSCVRT) #define _LIBCPP_ELAST _sys_nerr #else // Warn here so that the person doing the libcxx port has an easier time: |

