Commit a625761e authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Avoid annoying 'macro redefinition' warnings by defining

WIN32_NO_STATUS at the right time. Define _WIN32_WINNT otherwise we are missing some symbols with the Windows headers.
parent 870f55fe
...@@ -18,15 +18,9 @@ ...@@ -18,15 +18,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include "wine/test.h"
#include "ntstatus.h" #include "ntdll_test.h"
#include "windef.h"
#include "winbase.h"
#include "winnt.h"
#include "winreg.h"
#include "winternl.h"
#include "wine/unicode.h" #include "wine/unicode.h"
static NTSTATUS (WINAPI *pRtlMultiByteToUnicodeN)( LPWSTR dst, DWORD dstlen, LPDWORD reslen, static NTSTATUS (WINAPI *pRtlMultiByteToUnicodeN)( LPWSTR dst, DWORD dstlen, LPDWORD reslen,
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
#define WINE_NOWINSOCK #define WINE_NOWINSOCK
#include "ntstatus.h" #include "ntdll_test.h"
#include "windows.h"
#include "wine/test.h" #include "wine/test.h"
......
...@@ -21,17 +21,11 @@ ...@@ -21,17 +21,11 @@
* windows. * windows.
*/ */
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include "ntstatus.h" #include "ntdll_test.h"
#include "windef.h"
#include "winbase.h"
#include "wine/test.h"
#include "winnt.h"
#include "winnls.h" #include "winnls.h"
#include "winreg.h"
#include "winternl.h"
/* Function ptrs for ntdll calls */ /* Function ptrs for ntdll calls */
static HMODULE hntdll = 0; static HMODULE hntdll = 0;
......
/*
* Unit test suite for ntdll path functions
*
* Copyright 2003 Eric Pouech
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdarg.h>
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x500 /* For NTSTATUS */
#endif
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "winnt.h"
#include "winreg.h"
#include "winternl.h"
#include "wine/test.h"
...@@ -18,15 +18,7 @@ ...@@ -18,15 +18,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include <stdarg.h> #include "ntdll_test.h"
#include "wine/test.h"
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winnt.h"
#include "winreg.h"
#include "winternl.h"
static NTSTATUS (WINAPI *pRtlMultiByteToUnicodeN)( LPWSTR dst, DWORD dstlen, LPDWORD reslen, static NTSTATUS (WINAPI *pRtlMultiByteToUnicodeN)( LPWSTR dst, DWORD dstlen, LPDWORD reslen,
LPCSTR src, DWORD srclen ); LPCSTR src, DWORD srclen );
......
...@@ -21,17 +21,10 @@ ...@@ -21,17 +21,10 @@
* windows. * windows.
*/ */
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include "ntstatus.h" #include "ntdll_test.h"
#include "windef.h"
#include "winbase.h"
#include "wine/test.h"
#include "winnt.h"
#include "winnls.h" #include "winnls.h"
#include "winreg.h"
#include "winternl.h"
/* Function ptrs for ntdll calls */ /* Function ptrs for ntdll calls */
static HMODULE hntdll = 0; static HMODULE hntdll = 0;
......
...@@ -20,15 +20,8 @@ ...@@ -20,15 +20,8 @@
* We use function pointers here as some of the bitmap functions exist only * We use function pointers here as some of the bitmap functions exist only
* in later versions of ntdll. * in later versions of ntdll.
*/ */
#include <stdarg.h>
#include "ntdll_test.h"
#include "wine/test.h"
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winnt.h"
#include "winreg.h"
#include "winternl.h"
/* Function ptrs for ordinal calls */ /* Function ptrs for ordinal calls */
static HMODULE hntdll = 0; static HMODULE hntdll = 0;
......
...@@ -22,18 +22,12 @@ ...@@ -22,18 +22,12 @@
* windows. * windows.
*/ */
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#define INITGUID #define INITGUID
#include "ntstatus.h"
#include "windef.h" #include "ntdll_test.h"
#include "winbase.h"
#include "wine/test.h"
#include "winnt.h"
#include "winnls.h" #include "winnls.h"
#include "winreg.h"
#include "winternl.h"
#include "guiddef.h" #include "guiddef.h"
/* Function ptrs for ntdll calls */ /* Function ptrs for ntdll calls */
......
...@@ -21,17 +21,11 @@ ...@@ -21,17 +21,11 @@
* windows. * windows.
*/ */
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include "ntstatus.h" #include "ntdll_test.h"
#include "windef.h"
#include "winbase.h"
#include "wine/test.h"
#include "winnt.h"
#include "winnls.h" #include "winnls.h"
#include "winreg.h"
#include "winternl.h"
/* Function ptrs for ntdll calls */ /* Function ptrs for ntdll calls */
static HMODULE hntdll = 0; static HMODULE hntdll = 0;
......
...@@ -628,8 +628,7 @@ windef.h ...@@ -628,8 +628,7 @@ windef.h
%include %include
"ntstatus.h" "ntdll_test.h"
"windows.h"
%type %type
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment