diff --git a/ext/nokogiri/nokogiri.h b/ext/nokogiri/nokogiri.h index 3237554835b..2dad57633bb 100644 --- a/ext/nokogiri/nokogiri.h +++ b/ext/nokogiri/nokogiri.h @@ -1,6 +1,18 @@ #ifndef NOKOGIRI_NATIVE #define NOKOGIRI_NATIVE +#if _MSC_VER +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif /* WIN32_LEAN_AND_MEAN */ +#ifndef WIN32 +#define WIN32 +#endif /* WIN32 */ +#include +#include +#include +#endif + #include #include #include