From b05f33270553a3133bf9714ac4720f8377f682bc Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 5 Aug 2009 16:56:37 -0700 Subject: [PATCH] fix compile against visual studio 6 --- src/os/win32/sigar_os.h | 4 ++++ src/os/win32/wmi.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/os/win32/sigar_os.h b/src/os/win32/sigar_os.h index d70a777c..861ff26e 100644 --- a/src/os/win32/sigar_os.h +++ b/src/os/win32/sigar_os.h @@ -173,6 +173,10 @@ typedef enum { SC_STATUS_PROCESS_INFO = 0 } SC_STATUS_TYPE; +#ifndef ERROR_DATATYPE_MISMATCH +#define ERROR_DATATYPE_MISMATCH 1629L +#endif + #endif /* _MSC_VER */ #include diff --git a/src/os/win32/wmi.cpp b/src/os/win32/wmi.cpp index d98df536..a816bbd9 100644 --- a/src/os/win32/wmi.cpp +++ b/src/os/win32/wmi.cpp @@ -22,8 +22,8 @@ #include #include -#include #include +#include #include "sigar.h" #pragma comment(lib, "wbemuuid.lib")