mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 21:36:41 +00:00
- 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:
parent
5173235ba2
commit
cc2c98c93f
6 changed files with 4 additions and 9 deletions
|
@ -32,7 +32,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <windef.h>
|
|
||||||
#include <excpt.h>
|
#include <excpt.h>
|
||||||
#include <ntdef.h>
|
#include <ntdef.h>
|
||||||
#include <basetyps.h>
|
#include <basetyps.h>
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
#ifndef _NTDEF_H
|
#ifndef _NTDEF_H
|
||||||
#define _NTDEF_H
|
#define _NTDEF_H
|
||||||
#if __GNUC__ >=3
|
|
||||||
#pragma GCC system_header
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <windef.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_FIELD_SIZE(type, field) (sizeof(((type *)0)->field))
|
||||||
#define RTL_NUMBER_OF_V1(A) (sizeof(A)/sizeof((A)[0]))
|
#define RTL_NUMBER_OF_V1(A) (sizeof(A)/sizeof((A)[0]))
|
||||||
#define RTL_NUMBER_OF_V2(A) RTL_NUMBER_OF_V1(A)
|
#define RTL_NUMBER_OF_V2(A) RTL_NUMBER_OF_V1(A)
|
||||||
#endif
|
|
||||||
#ifdef ENABLE_RTL_NUMBER_OF_V2
|
#ifdef ENABLE_RTL_NUMBER_OF_V2
|
||||||
#define RTL_NUMBER_OF(A) RTL_NUMBER_OF_V2(A)
|
#define RTL_NUMBER_OF(A) RTL_NUMBER_OF_V2(A)
|
||||||
#else
|
#else
|
||||||
#define RTL_NUMBER_OF(A) RTL_NUMBER_OF_V1(A)
|
#define RTL_NUMBER_OF(A) RTL_NUMBER_OF_V1(A)
|
||||||
|
#endif
|
||||||
#define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
|
#define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
|
||||||
#define MINCHAR 0x80
|
#define MINCHAR 0x80
|
||||||
#define MAXCHAR 0x7f
|
#define MAXCHAR 0x7f
|
|
@ -123,7 +123,6 @@
|
||||||
#ifndef PORTCLS_H
|
#ifndef PORTCLS_H
|
||||||
#define PORTCLS_H
|
#define PORTCLS_H
|
||||||
|
|
||||||
//#include <windef.h>
|
|
||||||
#include <ks.h>
|
#include <ks.h>
|
||||||
#include <punknown.h>
|
#include <punknown.h>
|
||||||
#include <ntddk.h>
|
#include <ntddk.h>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#ifndef _UNKNOWN_H_
|
#ifndef _UNKNOWN_H_
|
||||||
#define _UNKNOWN_H_
|
#define _UNKNOWN_H_
|
||||||
|
|
||||||
#include <windef.h>
|
#include <ntdef.h>
|
||||||
#define COM_NO_WINDOWS_H
|
#define COM_NO_WINDOWS_H
|
||||||
#include <basetyps.h>
|
#include <basetyps.h>
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ extern "C" {
|
||||||
#include <wdm.h>
|
#include <wdm.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <windef.h>
|
#include <ntdef.h>
|
||||||
#define COM_NO_WINDOWS_H
|
#define COM_NO_WINDOWS_H
|
||||||
#include <basetyps.h>
|
#include <basetyps.h>
|
||||||
#ifdef PUT_GUIDS_HERE
|
#ifdef PUT_GUIDS_HERE
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#if !defined(_RTLFUNCS_H) && (!defined(_NTDDK_) || !defined(__NTDDK_H))
|
#if !defined(_RTLFUNCS_H) && (!defined(_NTDDK_) || !defined(__NTDDK_H))
|
||||||
|
|
||||||
/* Make sure we have basic types (some people include us *before* SDK... */
|
/* 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.
|
#error Please include SDK first.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue