From 397aee41261bd937422aa45fdd2df334a6eae851 Mon Sep 17 00:00:00 2001 From: Casper Hornstrup Date: Sun, 29 Jun 2003 12:30:20 +0000 Subject: [PATCH] Readd windows.h as it is needed for cross-compilation. svn path=/trunk/; revision=4990 --- reactos/tools/wmc/windows.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 reactos/tools/wmc/windows.h diff --git a/reactos/tools/wmc/windows.h b/reactos/tools/wmc/windows.h new file mode 100644 index 00000000000..0c8a7d4b6f8 --- /dev/null +++ b/reactos/tools/wmc/windows.h @@ -0,0 +1,35 @@ +#include +typedef wchar_t WCHAR; +typedef unsigned short int WORD; +typedef unsigned int UINT; +typedef unsigned int DWORD; +typedef char CHAR; +typedef CHAR *LPSTR; +typedef WCHAR *LPWSTR; +typedef const CHAR *LPCSTR; +typedef const WCHAR *LPCWSTR; +typedef unsigned int *LPBOOL; + +#ifndef __unix__ +#define STDCALL __attribute__((stdcall)) +#else +#define STDCALL +#endif + +int STDCALL MultiByteToWideChar( + UINT CodePage, + DWORD dwFlags, + LPCSTR lpMultiByteStr, + int cbMultiByte, + LPWSTR lpWideCharStr, + int cchWideChar); + +int STDCALL WideCharToMultiByte( + UINT CodePage, + DWORD dwFlags, + LPCWSTR lpWideCharStr, + int cchWideChar, + LPSTR lpMultiByteStr, + int cbMultiByte, + LPCSTR lpDefaultChar, + LPBOOL lpUsedDefaultChar);