From 44840c6db32add70159dde34cd392c5d178e5ad8 Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Sat, 18 Aug 2007 19:49:53 +0000 Subject: [PATCH] Move the wchar_t check above the "#include " line (this is needed for Mac OS X host compatibility) svn path=/trunk/; revision=28409 --- reactos/include/psdk/winnt.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/reactos/include/psdk/winnt.h b/reactos/include/psdk/winnt.h index d1e73521718..21a44c97407 100644 --- a/reactos/include/psdk/winnt.h +++ b/reactos/include/psdk/winnt.h @@ -50,6 +50,23 @@ extern "C" { #include #include +#ifndef _WCHAR_T_DEFINED +#define _WCHAR_T_DEFINED +#ifndef _WCHAR_T_DECLARED /* for FreeBSD 5 and later */ +#define _WCHAR_T_DECLARED +#ifndef _WCHAR_T /* for Mac OS X */ +#define _WCHAR_T +#ifndef _WCHAR_T_ +#define _WCHAR_T_ +#undef __need_wchar_t +#ifndef __cplusplus +typedef unsigned short wchar_t; +#endif +#endif +#endif +#endif +#endif + #include #include #include @@ -118,23 +135,6 @@ typedef void *PVOID,*LPVOID; #endif typedef void* __ptr64 PVOID64; -#ifndef _WCHAR_T_DEFINED -#define _WCHAR_T_DEFINED -#ifndef _WCHAR_T_DECLARED /* for FreeBSD 5 and later */ -#define _WCHAR_T_DECLARED -#ifndef _WCHAR_T /* for Mac OS X */ -#define _WCHAR_T -#ifndef _WCHAR_T_ -#define _WCHAR_T_ -#undef __need_wchar_t -#ifndef __cplusplus -typedef unsigned short wchar_t; -#endif -#endif -#endif -#endif -#endif - #ifdef __cplusplus # define EXTERN_C extern "C" #else