]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8891 fix M$ WINAPI typedefs
authorHoward Chu <hyc@openldap.org>
Mon, 6 Aug 2018 12:10:59 +0000 (13:10 +0100)
committerHoward Chu <hyc@openldap.org>
Sat, 10 Oct 2020 12:20:33 +0000 (13:20 +0100)
libraries/liblmdb/mdb.c

index 671a86e497254855d85ad68dbcd15dbc258f6d28..ad4a3fcb01ac7393228bc4e126c23969d0747d7a 100644 (file)
@@ -52,7 +52,7 @@
  * NTDLL.DLL at runtime, to avoid buildtime dependencies on any
  * NTDLL import libraries.
  */
-typedef NTSTATUS WINAPI (NtCreateSectionFunc)
+typedef NTSTATUS (WINAPI NtCreateSectionFunc)
   (OUT PHANDLE sh, IN ACCESS_MASK acc,
   IN void * oa OPTIONAL,
   IN PLARGE_INTEGER ms OPTIONAL,
@@ -65,7 +65,7 @@ typedef enum _SECTION_INHERIT {
        ViewUnmap = 2
 } SECTION_INHERIT;
 
-typedef NTSTATUS WINAPI (NtMapViewOfSectionFunc)
+typedef NTSTATUS (WINAPI NtMapViewOfSectionFunc)
   (IN PHANDLE sh, IN HANDLE ph,
   IN OUT PVOID *addr, IN ULONG_PTR zbits,
   IN SIZE_T cs, IN OUT PLARGE_INTEGER off OPTIONAL,
@@ -74,7 +74,7 @@ typedef NTSTATUS WINAPI (NtMapViewOfSectionFunc)
 
 static NtMapViewOfSectionFunc *NtMapViewOfSection;
 
-typedef NTSTATUS WINAPI (NtCloseFunc)(HANDLE h);
+typedef NTSTATUS (WINAPI NtCloseFunc)(HANDLE h);
 
 static NtCloseFunc *NtClose;