test,win: fix compilation with shared lib
Tests were failing to link because of undefined snprintf symbol with VS < 2015 and using shared library. snprintf is implemented in libuv in src/win/snprintf.c when compiling with VS < 2015, so this commit add src/win/snprintf.c to test sources to make snprintf available in tests. PR-URL: https://github.com/libuv/libuv/pull/678 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
parent
f1a13e9b4a
commit
ad2cc8f6a7
4
uv.gyp
4
uv.gyp
@ -418,7 +418,8 @@
|
||||
[ 'OS=="win"', {
|
||||
'sources': [
|
||||
'test/runner-win.c',
|
||||
'test/runner-win.h'
|
||||
'test/runner-win.h',
|
||||
'src/win/snprintf.c',
|
||||
],
|
||||
'libraries': [ '-lws2_32' ]
|
||||
}, { # POSIX
|
||||
@ -486,6 +487,7 @@
|
||||
'sources': [
|
||||
'test/runner-win.c',
|
||||
'test/runner-win.h',
|
||||
'src/win/snprintf.c',
|
||||
],
|
||||
'libraries': [ '-lws2_32' ]
|
||||
}, { # POSIX
|
||||
|
||||
Loading…
Reference in New Issue
Block a user