From d9780a8b3e439ab1ca365c257a77a6b85a9d5529 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 3 Jul 2003 18:12:38 +0000 Subject: [PATCH] Fixed compile when functions are not inlined. --- dlls/ntdll/sysdeps.c | 2 +- files/smb.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/ntdll/sysdeps.c b/dlls/ntdll/sysdeps.c index c6ddba865f5..f903df3e6ba 100644 --- a/dlls/ntdll/sysdeps.c +++ b/dlls/ntdll/sysdeps.c @@ -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]; } diff --git a/files/smb.h b/files/smb.h index 21635531235..dd4138985b1 100644 --- a/files/smb.h +++ b/files/smb.h @@ -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);