- Move ntdef.h to DDK as that is where it belongs, and remove unnecessary system_header. Also fix a #endif (kudos to hto -- bug 3888)

- Fix DDK to include ntdef.h instead of windef.h
- Fix a check in debug.h

svn path=/trunk/; revision=37521
This commit is contained in:
Stefan Ginsberg 2008-11-21 18:18:12 +00:00
parent 5173235ba2
commit cc2c98c93f
6 changed files with 4 additions and 9 deletions

View file

@ -32,7 +32,6 @@
#endif
#include <stdarg.h>
#include <windef.h>
#include <excpt.h>
#include <ntdef.h>
#include <basetyps.h>

View file

@ -1,8 +1,5 @@
#ifndef _NTDEF_H
#define _NTDEF_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#include <stdarg.h>
#include <windef.h>
@ -114,11 +111,11 @@ typedef LIST_ENTRY64 *PLIST_ENTRY64;
#define RTL_FIELD_SIZE(type, field) (sizeof(((type *)0)->field))
#define RTL_NUMBER_OF_V1(A) (sizeof(A)/sizeof((A)[0]))
#define RTL_NUMBER_OF_V2(A) RTL_NUMBER_OF_V1(A)
#endif
#ifdef ENABLE_RTL_NUMBER_OF_V2
#define RTL_NUMBER_OF(A) RTL_NUMBER_OF_V2(A)
#else
#define RTL_NUMBER_OF(A) RTL_NUMBER_OF_V1(A)
#endif
#define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
#define MINCHAR 0x80
#define MAXCHAR 0x7f

View file

@ -123,7 +123,6 @@
#ifndef PORTCLS_H
#define PORTCLS_H
//#include <windef.h>
#include <ks.h>
#include <punknown.h>
#include <ntddk.h>

View file

@ -8,7 +8,7 @@
#ifndef _UNKNOWN_H_
#define _UNKNOWN_H_
#include <windef.h>
#include <ntdef.h>
#define COM_NO_WINDOWS_H
#include <basetyps.h>

View file

@ -9,7 +9,7 @@ extern "C" {
#include <wdm.h>
#endif
#include <windef.h>
#include <ntdef.h>
#define COM_NO_WINDOWS_H
#include <basetyps.h>
#ifdef PUT_GUIDS_HERE

View file

@ -20,7 +20,7 @@
#if !defined(_RTLFUNCS_H) && (!defined(_NTDDK_) || !defined(__NTDDK_H))
/* Make sure we have basic types (some people include us *before* SDK... */
#if !defined(_NTDEF_) && !defined(_WINDEF_) && !defined(_WINDEF_H)
#if !defined(_NTDEF_) && !defined(_NTDEF_H) && !defined(_WINDEF_) && !defined(_WINDEF_H)
#error Please include SDK first.
#endif