mirror of
https://github.com/reactos/reactos.git
synced 2025-05-31 15:08:14 +00:00
Better assert + add LPDWORD type
Fix typo preventing livecd to be built svn path=/trunk/; revision=28716
This commit is contained in:
parent
7d2d0b3329
commit
a86b4289ac
1 changed files with 14 additions and 5 deletions
|
@ -9,9 +9,18 @@
|
||||||
#ifndef _TYPEDEFS_HOST_H
|
#ifndef _TYPEDEFS_HOST_H
|
||||||
#define _TYPEDEFS_HOST_H
|
#define _TYPEDEFS_HOST_H
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#define W64 __w64
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#define W64
|
||||||
|
#else
|
||||||
|
#error Unknown compiler
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef __fastcall
|
#ifndef __fastcall
|
||||||
#define __fastcall __attribute__((fastcall))
|
#define __fastcall __attribute__((fastcall))
|
||||||
#endif
|
#endif
|
||||||
|
@ -23,7 +32,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define UNIMPLEMENTED { printf("%s unimplemented\n", __FUNCTION__); exit(1); }
|
#define UNIMPLEMENTED { printf("%s unimplemented\n", __FUNCTION__); exit(1); }
|
||||||
#define ASSERT(x) { if (!(x)) { printf("Assertion " #x " at %s:%d failed\n", __FILE__, __LINE__); exit(1); } }
|
#define ASSERT(x) assert(x)
|
||||||
#define DPRINT if (0) printf
|
#define DPRINT if (0) printf
|
||||||
#define DPRINT1 printf
|
#define DPRINT1 printf
|
||||||
|
|
||||||
|
@ -50,14 +59,14 @@ typedef const char CCHAR;
|
||||||
typedef const char *PCSTR, *LPCSTR;
|
typedef const char *PCSTR, *LPCSTR;
|
||||||
typedef short SHORT;
|
typedef short SHORT;
|
||||||
typedef unsigned short USHORT;
|
typedef unsigned short USHORT;
|
||||||
typedef unsigned int LONG, *PLONG;
|
typedef int LONG, *PLONG;
|
||||||
typedef unsigned int ULONG, *PULONG, DWORD;
|
typedef unsigned int ULONG, *PULONG, DWORD, *LPDWORD;
|
||||||
typedef long long LONGLONG;
|
typedef long long LONGLONG;
|
||||||
typedef unsigned long long ULONGLONG;
|
typedef unsigned long long ULONGLONG;
|
||||||
typedef UCHAR BOOLEAN, *PBOOLEAN;
|
typedef UCHAR BOOLEAN, *PBOOLEAN;
|
||||||
typedef int BOOL;
|
typedef int BOOL;
|
||||||
typedef int LONG_PTR, *PLONG_PTR;
|
typedef int W64 LONG_PTR, *PLONG_PTR;
|
||||||
typedef unsigned int ULONG_PTR, *PULONG_PTR;
|
typedef unsigned int W64 ULONG_PTR, *PULONG_PTR;
|
||||||
typedef wchar_t WCHAR, *PWCHAR, *PWSTR, *LPWSTR;
|
typedef wchar_t WCHAR, *PWCHAR, *PWSTR, *LPWSTR;
|
||||||
typedef const wchar_t *PCWSTR, *LPCWSTR;
|
typedef const wchar_t *PCWSTR, *LPCWSTR;
|
||||||
typedef int NTSTATUS;
|
typedef int NTSTATUS;
|
||||||
|
|
Loading…
Reference in a new issue