Fixed compile when functions are not inlined.

This commit is contained in:
Alexandre Julliard 2003-07-03 18:12:38 +00:00
parent b23aa94321
commit d9780a8b3e
2 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ void SYSDEPS_SetCurThread( TEB *teb )
*/ */
inline static char *get_temp_stack(void) 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]; return temp_stacks[next % NB_TEMP_STACKS];
} }

View File

@ -19,8 +19,8 @@
#ifndef __INC_SMB__ #ifndef __INC_SMB__
#define __INC_SMB__ #define __INC_SMB__
extern inline int SMB_isSepW (WCHAR c) {return (c == '\\' || c == '/');} static 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_isUNCW (LPCWSTR filename) {return (filename && SMB_isSepW (filename[0]) && SMB_isSepW (filename[1]));}
NTSTATUS WINAPI SMB_ReadFile(HANDLE hFile, LPVOID buffer, DWORD bytesToRead, NTSTATUS WINAPI SMB_ReadFile(HANDLE hFile, LPVOID buffer, DWORD bytesToRead,
PIO_STATUS_BLOCK io_status); PIO_STATUS_BLOCK io_status);