[libcxx] r229161 - cctype: tweak inclusions for _LIBCPP_MSVCRT case

Saleem Abdulrasool compnerd at compnerd.org
Fri Feb 13 14:15:29 PST 2015


Author: compnerd
Date: Fri Feb 13 16:15:28 2015
New Revision: 229161

URL: http://llvm.org/viewvc/llvm-project?rev=229161&view=rev
Log:
cctype: tweak inclusions for _LIBCPP_MSVCRT case

cctype uses ctype functions such as isblank. However, when building against
msvcrt, this is provided by the support header. Include the support header if
building for Windows to ensure that the definition is properly visible.

Modified:
    libcxx/trunk/include/cctype

Modified: libcxx/trunk/include/cctype
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/cctype?rev=229161&r1=229160&r2=229161&view=diff
==============================================================================
--- libcxx/trunk/include/cctype (original)
+++ libcxx/trunk/include/cctype Fri Feb 13 16:15:28 2015
@@ -39,6 +39,7 @@ int toupper(int c);
 #include <ctype.h>
 #if defined(_LIBCPP_MSVCRT)
 #include "support/win32/support.h"
+#include "support/win32/locale_win32.h"
 #endif // _LIBCPP_MSVCRT
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)





More information about the cfe-commits mailing list