Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Fix compiling with mingw-w64.
Browse files Browse the repository at this point in the history
  • Loading branch information
erickt committed Sep 15, 2011
1 parent c3994b2 commit 484d3ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/win/winapi.h
Expand Up @@ -4079,8 +4079,8 @@
(FACILITY_NTWIN32 << 16) | ERROR_SEVERITY_WARNING)))

/* from ntifs.h */
/* MinGW already has it */
#ifndef __MINGW32__
/* MinGW32 already has it */
#if !defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR)
typedef struct _REPARSE_DATA_BUFFER {
ULONG ReparseTag;
USHORT ReparseDataLength;
Expand Down
6 changes: 3 additions & 3 deletions uv.gyp
Expand Up @@ -126,7 +126,7 @@
],
'link_settings': {
'libraries': [
'-lws2_32.lib',
'-lws2_32',
],
},
}, { # Not Windows i.e. POSIX
Expand Down Expand Up @@ -275,7 +275,7 @@
'test/runner-win.c',
'test/runner-win.h'
],
'libraries': [ 'ws2_32.lib' ]
'libraries': [ '-lws2_32' ]
}, { # POSIX
'defines': [ '_GNU_SOURCE' ],
'ldflags': [ '-pthread' ],
Expand Down Expand Up @@ -319,7 +319,7 @@
'test/runner-win.c',
'test/runner-win.h',
],
'libraries': [ 'ws2_32.lib' ]
'libraries': [ '-lws2_32' ]
}, { # POSIX
'defines': [ '_GNU_SOURCE' ],
'ldflags': [ '-pthread' ],
Expand Down

0 comments on commit 484d3ba

Please sign in to comment.