Windows port work by Ruben Van Boxem

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@140805 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2011-09-29 20:33:10 +00:00
parent 3c466fc631
commit 14fa9f9d8f
5 changed files with 101 additions and 8 deletions

View File

@@ -20,7 +20,7 @@
#include <cctype>
#include <locale.h>
#if _WIN32
# include <support/win32/locale.h>
# include <support/win32/locale_win32.h>
#else // _WIN32
# include <xlocale.h>
#endif // _WIN32

View File

@@ -187,8 +187,7 @@ template <class charT> class messages_byname;
#include <cstdlib>
#include <ctime>
#if _WIN32
#include <support/win32/support.h>
#include <support/win32/locale.h>
#include <support/win32/locale_win32.h>
#else // _WIN32
#include <nl_types.h>
#endif // !_WIN32

View File

@@ -1,5 +1,5 @@
// -*- C++ -*-
//===------------------------ support/win32/locale.h ----------------------===//
//===--------------------- support/win32/locale_win32.h -------------------===//
//
// The LLVM Compiler Infrastructure
//
@@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef _LIBCPP_SUPPORT_WIN32_LOCALE_H
#define _LIBCPP_SUPPORT_WIN32_LOCALE_H
#ifndef _LIBCPP_SUPPORT_WIN32_LOCALE_WIN32_H
#define _LIBCPP_SUPPORT_WIN32_LOCALE_WIN32_H
// ctype mask table defined in msvcrt.dll
extern "C" unsigned short __declspec(dllimport) _ctype[];
@@ -107,4 +107,4 @@ inline int iswblank_l( wint_t c, locale_t /*loc*/ )
return ( c == L' ' || c == L'\t' );
}
#endif // _LIBCPP_SUPPORT_WIN32_LOCALE_H
#endif // _LIBCPP_SUPPORT_WIN32_LOCALE_WIN32_H