Merged THDB and TEB structures.
Made SetLastError(), GetCurrentThreadId() and PROCESS_Current() inline.
diff --git a/include/winbase.h b/include/winbase.h
index c992ed2..2cd5b50 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -1303,7 +1303,6 @@
HANDLE WINAPI GetCurrentProcess(void);
DWORD WINAPI GetCurrentProcessId(void);
HANDLE WINAPI GetCurrentThread(void);
-DWORD WINAPI GetCurrentThreadId(void);
INT WINAPI GetDateFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
INT WINAPI GetDateFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
#define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
@@ -1493,7 +1492,6 @@
LCID WINAPI GetSystemDefaultLCID(void);
LANGID WINAPI GetUserDefaultLangID(void);
LCID WINAPI GetUserDefaultLCID(void);
-VOID WINAPI SetLastError(DWORD);
ATOM WINAPI AddAtomA(LPCSTR);
ATOM WINAPI AddAtomW(LPCWSTR);
#define AddAtom WINELIB_NAME_AW(AddAtom)
@@ -1741,6 +1739,13 @@
INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
#define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
+/* the following may be macros when compiling Wine */
+#ifndef SetLastError
+VOID WINAPI SetLastError(DWORD);
+#endif
+#ifndef GetCurrentThreadId
+DWORD WINAPI GetCurrentThreadId(void);
+#endif
#ifdef __cplusplus
}