Skip to content

Commit

Permalink
Merge pull request #2016 from jmarrec/MSVC_support
Browse files Browse the repository at this point in the history
Support MSVC
  • Loading branch information
flavorjones authored Mar 30, 2020
2 parents a3d9438 + 59d78e0 commit aaccf5a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ext/nokogiri/nokogiri.h
Original file line number Diff line number Diff line change
@@ -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 <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
#endif

#include <stdlib.h>
#include <string.h>
#include <assert.h>
Expand Down

0 comments on commit aaccf5a

Please sign in to comment.