Commit 58eceff1 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Don't use wine/server.h from the PE side.

parent c2c57e8d
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
......
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
#include "windef.h" #include "windef.h"
#include "wine/server.h"
#include "ntdll_misc.h" #include "ntdll_misc.h"
#include "wine/debug.h" #include "wine/debug.h"
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include "winternl.h" #include "winternl.h"
#include "ddk/wdm.h" #include "ddk/wdm.h"
#include "ntdll_misc.h" #include "ntdll_misc.h"
#include "wine/server.h"
#include "wine/list.h" #include "wine/list.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/exception.h" #include "wine/exception.h"
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include "winternl.h" #include "winternl.h"
#include "ddk/wdm.h" #include "ddk/wdm.h"
#include "wine/exception.h" #include "wine/exception.h"
#include "wine/server.h"
#include "wine/list.h" #include "wine/list.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "excpt.h" #include "excpt.h"
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include "ntdll_misc.h" #include "ntdll_misc.h"
#include "wine/list.h" #include "wine/list.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/server.h"
WINE_DEFAULT_DEBUG_CHANNEL(heap); WINE_DEFAULT_DEBUG_CHANNEL(heap);
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <assert.h> #include <assert.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h>
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include "windef.h" #include "windef.h"
#include "winternl.h" #include "winternl.h"
#include "ntdll_misc.h" #include "ntdll_misc.h"
#include "wine/server.h"
#include "ddk/wdm.h" #include "ddk/wdm.h"
WINE_DEFAULT_DEBUG_CHANNEL(ntdll); WINE_DEFAULT_DEBUG_CHANNEL(ntdll);
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "winnt.h" #include "winnt.h"
#include "winternl.h" #include "winternl.h"
#include "unixlib.h" #include "unixlib.h"
#include "wine/server.h"
#include "wine/asm.h" #include "wine/asm.h"
#define DECLARE_CRITICAL_SECTION(cs) \ #define DECLARE_CRITICAL_SECTION(cs) \
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#include "windef.h" #include "windef.h"
#include "winternl.h" #include "winternl.h"
#include "wine/server.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "ntdll_misc.h" #include "ntdll_misc.h"
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
#include "winternl.h" #include "winternl.h"
#include "wine/server.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "ntdll_misc.h" #include "ntdll_misc.h"
#include "ddk/wdm.h" #include "ddk/wdm.h"
......
...@@ -1090,8 +1090,7 @@ static void CALLBACK timerqueue_thread_proc( void *param ) ...@@ -1090,8 +1090,7 @@ static void CALLBACK timerqueue_thread_proc( void *param )
} }
} }
timeout_lower = TIMEOUT_INFINITE; timeout_lower = timeout_upper = MAXLONGLONG;
timeout_upper = TIMEOUT_INFINITE;
/* Determine next timeout and use the window length to optimize wakeup times. */ /* Determine next timeout and use the window length to optimize wakeup times. */
LIST_FOR_EACH_ENTRY( other_timer, &timerqueue.pending_timers, LIST_FOR_EACH_ENTRY( other_timer, &timerqueue.pending_timers,
...@@ -1247,7 +1246,7 @@ static void CALLBACK waitqueue_thread_proc( void *param ) ...@@ -1247,7 +1246,7 @@ static void CALLBACK waitqueue_thread_proc( void *param )
for (;;) for (;;)
{ {
NtQuerySystemTime( &now ); NtQuerySystemTime( &now );
timeout.QuadPart = TIMEOUT_INFINITE; timeout.QuadPart = MAXLONGLONG;
num_handles = 0; num_handles = 0;
LIST_FOR_EACH_ENTRY_SAFE( wait, next, &bucket->waiting, struct threadpool_object, LIST_FOR_EACH_ENTRY_SAFE( wait, next, &bucket->waiting, struct threadpool_object,
...@@ -2985,7 +2984,7 @@ VOID WINAPI TpSetTimer( TP_TIMER *timer, LARGE_INTEGER *timeout, LONG period, LO ...@@ -2985,7 +2984,7 @@ VOID WINAPI TpSetTimer( TP_TIMER *timer, LARGE_INTEGER *timeout, LONG period, LO
VOID WINAPI TpSetWait( TP_WAIT *wait, HANDLE handle, LARGE_INTEGER *timeout ) VOID WINAPI TpSetWait( TP_WAIT *wait, HANDLE handle, LARGE_INTEGER *timeout )
{ {
struct threadpool_object *this = impl_from_TP_WAIT( wait ); struct threadpool_object *this = impl_from_TP_WAIT( wait );
ULONGLONG timestamp = TIMEOUT_INFINITE; ULONGLONG timestamp = MAXLONGLONG;
TRACE( "%p %p %p\n", wait, handle, timeout ); TRACE( "%p %p %p\n", wait, handle, timeout );
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
#include "winternl.h"
#include "unix_private.h" #include "unix_private.h"
#include "wine/debug.h" #include "wine/debug.h"
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
#include "windef.h" #include "windef.h"
#include "winternl.h"
#include "unix_private.h" #include "unix_private.h"
#include "wine/debug.h" #include "wine/debug.h"
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <pthread.h> #include <pthread.h>
#include <signal.h> #include <signal.h>
#include "unixlib.h" #include "unixlib.h"
#include "wine/server.h"
#include "wine/list.h" #include "wine/list.h"
#ifdef __i386__ #ifdef __i386__
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#ifndef __NTDLL_UNIXLIB_H #ifndef __NTDLL_UNIXLIB_H
#define __NTDLL_UNIXLIB_H #define __NTDLL_UNIXLIB_H
#include "wine/server.h"
#include "wine/debug.h" #include "wine/debug.h"
struct _DISPATCHER_CONTEXT; struct _DISPATCHER_CONTEXT;
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#include "windef.h" #include "windef.h"
#include "winternl.h" #include "winternl.h"
#include "wine/server.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "ntdll_misc.h" #include "ntdll_misc.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment