build: add define guard around UV_EXTERN (#3855)
Incidentally lets users control the definition of UV_EXTERN.
This commit is contained in:
parent
e9d91fccfc
commit
12b8c116a4
@ -31,6 +31,7 @@ extern "C" {
|
|||||||
#error "Define either BUILDING_UV_SHARED or USING_UV_SHARED, not both."
|
#error "Define either BUILDING_UV_SHARED or USING_UV_SHARED, not both."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef UV_EXTERN
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
/* Windows - set up dll import/export decorators. */
|
/* Windows - set up dll import/export decorators. */
|
||||||
# if defined(BUILDING_UV_SHARED)
|
# if defined(BUILDING_UV_SHARED)
|
||||||
@ -50,6 +51,7 @@ extern "C" {
|
|||||||
#else
|
#else
|
||||||
# define UV_EXTERN /* nothing */
|
# define UV_EXTERN /* nothing */
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* UV_EXTERN */
|
||||||
|
|
||||||
#include "uv/errno.h"
|
#include "uv/errno.h"
|
||||||
#include "uv/version.h"
|
#include "uv/version.h"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user