From 670c1baf49c1caccd0bea8da85680065bad0c2ab Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Tue, 11 Aug 2009 23:52:17 -0400 Subject: [PATCH] Minor corrections to windows run-time function detection. SVN-Revision: 1365 --- libarchive/test/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libarchive/test/main.c b/libarchive/test/main.c index 07ccd3ea7..3357b565d 100644 --- a/libarchive/test/main.c +++ b/libarchive/test/main.c @@ -39,7 +39,6 @@ #endif #include #include -#include #ifndef F_OK #define F_OK (0) #endif @@ -82,7 +81,7 @@ void *GetFunctionKernel32(const char *name) int __CreateSymbolicLinkA(const char *linkname, const char *target, int flags) { - static BOOLEAN WINAPI (*f)(LPSTR, LPSTR, DWORD); + static BOOLEAN (*f)(LPCSTR, LPCSTR, DWORD); static int set; if (!set) { set = 1; @@ -93,7 +92,7 @@ int __CreateSymbolicLinkA(const char *linkname, const char *target, int flags) int __CreateHardLinkA(const char *linkname, const char *target) { - static BOOLEAN WINAPI (*f)(LPCSTR, LPCSTR, LPSECURITY_ATTRIBUTES); + static BOOLEAN (*f)(LPCSTR, LPCSTR, LPSECURITY_ATTRIBUTES); static int set; if (!set) { set = 1; @@ -1114,7 +1113,7 @@ test_assert_make_hardlink(const char *file, int line, count_assertion(file, line); #if defined(_WIN32) && !defined(__CYGWIN__) - succeeded = __CreateHardLinkA(newpath, linkto, NULL); + succeeded = __CreateHardLinkA(newpath, linkto); #elif HAVE_LINK succeeded = !link(linkto, newpath); #else -- 2.47.3