always declare the lstr* functions, even if they're inline
Mike McCormack
mike at codeweavers.com
Sun May 29 02:56:01 CDT 2005
When compiling with -Wmissing-declarations, gcc complains that the
prototypes of the inline lstrlenA/W, lstrcpyA/W, etc functions are
missing. This patch fixes the problem by always declaring the prototype.
Mike
ChangeLog:
* always declare the lstr* functions, even if they're inline
* add prototype for ReadDirectoryChangesW
-------------- next part --------------
Index: include/winbase.h
===================================================================
RCS file: /home/wine/wine/include/winbase.h,v
retrieving revision 1.233
diff -u -p -r1.233 winbase.h
--- include/winbase.h 25 May 2005 17:49:37 -0000 1.233
+++ include/winbase.h 29 May 2005 07:54:05 -0000
@@ -1621,6 +1621,7 @@ void WINAPI RaiseException(DWORD,
BOOL WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
BOOL WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
#define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
+BOOL WINAPI ReadDirectoryChangesW(HANDLE,LPVOID,DWORD,BOOL,DWORD,LPDWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
BOOL WINAPI ReadFileEx(HANDLE,LPVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
HANDLE WINAPI RegisterEventSourceA(LPCSTR,LPCSTR);
@@ -1985,8 +1986,6 @@ BOOL WINAPI WriteProfileStringW(L
#define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
#define Yield()
-#if defined(WINE_NO_INLINE_STRING) || !defined(__WINESRC__)
-
LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
@@ -1996,7 +1995,7 @@ LPWSTR WINAPI lstrcpynW(LPWSTR,LPCW
INT WINAPI lstrlenA(LPCSTR);
INT WINAPI lstrlenW(LPCWSTR);
-#else /* !defined(WINE_NO_INLINE_STRING) && defined(__WINESRC__) */
+#if !defined(WINE_NO_INLINE_STRING) && defined(__WINESRC__)
/* string functions without the exception handler */
More information about the wine-patches
mailing list