summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2015-04-21 13:10:37 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-05-07 19:52:25 +0100
commit3d5d39cc98b4c5cbecbc1f10db1f6c01963efa94 (patch)
tree5cbea855dc1d9ee79e8de08d646d2f3c45205e8a
parent5c74908c5abe5f91651e78b291ef7e1d02cca25a (diff)
Use Windows load interface for Win32 build, as well as Cygwin
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: David Macek <david.macek.0@gmail.com>
-rw-r--r--get_load.c2
-rw-r--r--get_rload.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/get_load.c b/get_load.c
index 0f5d878..7dd5650 100644
--- a/get_load.c
+++ b/get_load.c
@@ -48,7 +48,7 @@ from the X Consortium.
#include <stdlib.h>
#include "xload.h"
-#if defined(__CYGWIN__)
+#if defined(__CYGWIN__) || defined(_WIN32)
# define WIN32_LEAN_AND_MEAN
# include <X11/Xwindows.h>
typedef struct {
diff --git a/get_rload.c b/get_rload.c
index ecfd286..c3f9dfb 100644
--- a/get_rload.c
+++ b/get_rload.c
@@ -9,7 +9,7 @@
/* Not all OS supports get_rload
steal the STUB idea from get_load
*/
-#if defined(QNX4) || defined(__CYGWIN__)
+#if defined(QNX4) || defined(__CYGWIN__) || defined(_WIN32)
#define RLOADSTUB
#endif