Commit d9780a8b authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed compile when functions are not inlined.

parent b23aa943
......@@ -105,7 +105,7 @@ void SYSDEPS_SetCurThread( TEB *teb )
*/
inline static char *get_temp_stack(void)
{
unsigned int next = InterlockedExchangeAdd( &next_temp_stack, 1 );
unsigned int next = interlocked_xchg_add( &next_temp_stack, 1 );
return temp_stacks[next % NB_TEMP_STACKS];
}
......
......@@ -19,8 +19,8 @@
#ifndef __INC_SMB__
#define __INC_SMB__
extern inline int SMB_isSepW (WCHAR c) {return (c == '\\' || c == '/');}
extern inline int SMB_isUNCW (LPCWSTR filename) {return (filename && SMB_isSepW (filename[0]) && SMB_isSepW (filename[1]));}
static inline int SMB_isSepW (WCHAR c) {return (c == '\\' || c == '/');}
static inline int SMB_isUNCW (LPCWSTR filename) {return (filename && SMB_isSepW (filename[0]) && SMB_isSepW (filename[1]));}
NTSTATUS WINAPI SMB_ReadFile(HANDLE hFile, LPVOID buffer, DWORD bytesToRead,
PIO_STATUS_BLOCK io_status);
......
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