summaryrefslogtreecommitdiff
path: root/get_load.c
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2010-10-04 21:43:47 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2010-10-07 12:56:08 -0500
commit1652442c2f82d30d0ed4d9cfbd6d3725b09f4a29 (patch)
tree773c37ca9dd98903908a77c40313bdbf4356ac85 /get_load.c
parent600c46eaccd89417a5e44e86d18f9c733af64dc9 (diff)
Avoid excess Win32 includes on Cygwin
Fixes compilation errors due to recent w32api <winspool.h>, which is not needed to compile xload. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk> Tested-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'get_load.c')
-rw-r--r--get_load.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/get_load.c b/get_load.c
index 1439090..551a7a8 100644
--- a/get_load.c
+++ b/get_load.c
@@ -52,6 +52,7 @@ from the X Consortium.
#include "xload.h"
#if defined(__CYGWIN__)
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
typedef struct {
DWORD stat;