* lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
+2018-06-17 Bruno Haible <bruno@clisp.org>
+
+ getloadavg: Return 0 on Windows without Cygwin.
+ * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
+
2018-06-17 Paul Smith <psmith@gnu.org>
getloadavg: Allow building on Windows without Cygwin
UMAX
UMAX4_3
VMS
- WINDOWS32 No-op for Windows95/NT.
+ _WIN32 Native Windows (possibly also defined on Cygwin)
__linux__ Linux: assumes /proc file system mounted.
Support from Michael K. Johnson.
__CYGWIN__ Cygwin emulates linux /proc/loadavg.
# include "intprops.h"
+# if defined _WIN32 && ! defined __CYGWIN__
+# define WINDOWS32
+# endif
+
# if !defined (BSD) && defined (ultrix)
/* Ultrix behaves like BSD on Vaxen. */
# define BSD