Better assert + add LPDWORD type

Fix typo preventing livecd to be built

svn path=/trunk/; revision=28716
This commit is contained in:
Hervé Poussineau 2007-08-31 17:21:41 +00:00
parent 7d2d0b3329
commit a86b4289ac

View file

@ -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;