]> Savannah Git Hosting - gnulib.git/commitdiff
physmem: Fix compilation errors on MSVC.
authorBruno Haible <bruno@clisp.org>
Sat, 30 May 2020 08:39:49 +0000 (10:39 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 30 May 2020 08:39:49 +0000 (10:39 +0200)
* lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
* modules/physmem (Depends-on): Add unistd.

ChangeLog
lib/physmem.c
modules/physmem

index 13673e472f79629040da2369871d1d856d9f7bbd..33b61863aa6bb8818e561dd5abc8ba81eb49cbef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-05-30  Bruno Haible  <bruno@clisp.org>
+
+       physmem: Fix compilation errors on MSVC.
+       * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
+       * modules/physmem (Depends-on): Add unistd.
+
 2020-05-29  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool: Fix link errors with a particular set of modules on mingw.
index 76813a43d7341a0d6ba2792feffb611271131ffd..6f0c5ef84a738b7c154635b4f5c47c61a791dcbe 100644 (file)
@@ -81,7 +81,7 @@ typedef struct
   DWORDLONG ullAvailVirtual;
   DWORDLONG ullAvailExtendedVirtual;
 } lMEMORYSTATUSEX;
-typedef WINBOOL (WINAPI *PFN_MS_EX) (lMEMORYSTATUSEX*);
+typedef BOOL (WINAPI *PFN_MS_EX) (lMEMORYSTATUSEX*);
 
 #endif
 
index 9644522e0493a85a9fb4ae7c4449741c2c1500ea..2cb7e7f64adfff5d256b6eb9ec33f9f7a9621363 100644 (file)
@@ -7,6 +7,7 @@ lib/physmem.c
 m4/physmem.m4
 
 Depends-on:
+unistd
 
 configure.ac:
 gl_PHYSMEM