Couple of build fixes.

svn path=/trunk/; revision=16086
This commit is contained in:
Filip Navara 2005-06-19 09:07:44 +00:00
parent 068cf10896
commit fbf1722197
15 changed files with 29 additions and 22 deletions

View file

@ -30,6 +30,7 @@
#include <debug.h> #include <debug.h>
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
#define TAG_STRING TAG('S', 'T', 'R', ' ') /* string */ #define TAG_STRING TAG('S', 'T', 'R', ' ') /* string */
/* Define _NTTEST_ to make test version. Device names are prefixed with /* Define _NTTEST_ to make test version. Device names are prefixed with

View file

@ -45,6 +45,7 @@
#define VERSION "0.0.2" #define VERSION "0.0.2"
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
#define TAG_SRBT TAG('S', 'r', 'b', 'T') #define TAG_SRBT TAG('S', 'r', 'b', 'T')
#define INQUIRY_DATA_SIZE 2048 #define INQUIRY_DATA_SIZE 2048

View file

@ -10,6 +10,8 @@
#define PAGE_ROUND_UP(x) ( (((ULONG_PTR)x)%PAGE_SIZE) ? ((((ULONG_PTR)x)&(~(PAGE_SIZE-1)))+PAGE_SIZE) : ((ULONG_PTR)x) ) #define PAGE_ROUND_UP(x) ( (((ULONG_PTR)x)%PAGE_SIZE) ? ((((ULONG_PTR)x)&(~(PAGE_SIZE-1)))+PAGE_SIZE) : ((ULONG_PTR)x) )
#define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S)) #define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S))
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
typedef enum _SCSI_PORT_TIMER_STATES typedef enum _SCSI_PORT_TIMER_STATES
{ {
IDETimerIdle, IDETimerIdle,

View file

@ -4,6 +4,8 @@
#include <ddk/ntddk.h> #include <ddk/ntddk.h>
#include <debug.h> #include <debug.h>
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
void wait_ms(int mils); void wait_ms(int mils);
#ifndef _snprintf #ifndef _snprintf

View file

@ -56,6 +56,8 @@ typedef struct _PDEV
#endif #endif
} PDEV, *PPDEV; } PDEV, *PPDEV;
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
#define DEVICE_NAME L"framebuf" #define DEVICE_NAME L"framebuf"
#define ALLOC_TAG TAG('F','B','U','F') #define ALLOC_TAG TAG('F','B','U','F')

View file

@ -34,6 +34,8 @@
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
int swprintf(wchar_t *buf, const wchar_t *fmt, ...); int swprintf(wchar_t *buf, const wchar_t *fmt, ...);
int vsprintf(char *buf, const char *fmt, va_list args); int vsprintf(char *buf, const char *fmt, va_list args);

View file

@ -56,12 +56,12 @@ HalReturnToFirmware (
ULONG Action ULONG Action
) )
{ {
if (Action == FIRMWARE_HALT) if (Action == HalHaltRoutine)
{ {
DbgPrint ("HalReturnToFirmware called!\n"); DbgPrint ("HalReturnToFirmware called!\n");
DbgBreakPoint (); DbgBreakPoint ();
} }
else if (Action == FIRMWARE_REBOOT) else if (Action == HalRebootRoutine)
{ {
HalReleaseDisplayOwnership(); HalReleaseDisplayOwnership();
HalReboot (); HalReboot ();

View file

@ -20,6 +20,8 @@
#include <internal/ke.h> #include <internal/ke.h>
#include <internal/i386/ps.h> #include <internal/i386/ps.h>
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
//Temporary hack below. //Temporary hack below.
PVOID STDCALL PVOID STDCALL
MmAllocateContiguousAlignedMemory(IN ULONG NumberOfBytes, MmAllocateContiguousAlignedMemory(IN ULONG NumberOfBytes,

View file

@ -19,6 +19,7 @@
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
#define TAG_FREETYPE TAG('F', 'T', 'Y', 'P') #define TAG_FREETYPE TAG('F', 'T', 'Y', 'P')
/* /*

View file

@ -10,8 +10,8 @@
#include <roscfg.h> #include <roscfg.h>
#include <stdlib.h> #include <stdlib.h>
#include <windows.h> #include <windows.h>
#include <ddk/ntddk.h> #define NTOS_USER_MODE
#include <ddk/ntifs.h> #include <ntos.h>
#include <wsahelp.h> /* comment for msvc */ #include <wsahelp.h> /* comment for msvc */
//#include "C:\Programming\ReactOS\reactos\w32api\include\wsahelp.h" uncomment for MSVC //#include "C:\Programming\ReactOS\reactos\w32api\include\wsahelp.h" uncomment for MSVC
#include <winsock2.h> #include <winsock2.h>
@ -22,10 +22,6 @@
#include <helpers.h> #include <helpers.h>
#include <debug.h> #include <debug.h>
/* Because our headers are f*cked up */
typedef LARGE_INTEGER TIME;
#include <ntos/zw.h>
extern HANDLE GlobalHeap; extern HANDLE GlobalHeap;
extern WSPUPCALLTABLE Upcalls; extern WSPUPCALLTABLE Upcalls;
extern LPWPUCOMPLETEOVERLAPPEDREQUEST lpWPUCompleteOverlappedRequest; extern LPWPUCOMPLETEOVERLAPPEDREQUEST lpWPUCompleteOverlappedRequest;

View file

@ -15,6 +15,10 @@
/* TYPES *********************************************************************/ /* TYPES *********************************************************************/
/* FIXME: NDK headers */
#define TempEsp TempEip
#define TempSegSs TempCs
/* DEFINES *******************************************************************/ /* DEFINES *******************************************************************/
#define KDB_STACK_SIZE (4096*3) #define KDB_STACK_SIZE (4096*3)

View file

@ -37,6 +37,10 @@
/* DEFINES *******************************************************************/ /* DEFINES *******************************************************************/
/* FIXME: NDK headers */
#define TempEsp TempEip
#define TempSegSs TempCs
#define KEY_BS 8 #define KEY_BS 8
#define KEY_ESC 27 #define KEY_ESC 27
#define KEY_DEL 127 #define KEY_DEL 127

View file

@ -23,18 +23,7 @@
* *
*/ */
#undef WIN32_LEAN_AND_MEAN #include <w32k.h>
#define WIN32_NO_PEHDR
#include <ddk/ntddk.h>
#include <windows.h>
#include <win32k/driver.h>
#include <win32k/misc.h>
#include <wchar.h>
#include <ddk/winddi.h>
#include <ddk/ntapi.h>
#include <rosrtl/string.h>
#include <include/tags.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>

View file

@ -85,6 +85,7 @@
#include <dib/dib.h> #include <dib/dib.h>
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
#define NDEBUG #define NDEBUG
#include <win32k/debug1.h> #include <win32k/debug1.h>

View file

@ -1,5 +1,5 @@
/* /*
* ntddmou.h * kbdmou.h
* *
* Structures and definitions for Keyboard/Mouse class and port drivers. * Structures and definitions for Keyboard/Mouse class and port drivers.
* *