Skip to content

Commit

Permalink
uv, refactor: export uv functions in the symbol table to support bein…
Browse files Browse the repository at this point in the history
…g referenced in addons.
  • Loading branch information
xicilion committed Oct 22, 2023
1 parent 6a34fee commit 0d164b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uv/include/uv.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ extern "C" {
# define UV_EXTERN __declspec(dllimport)
# else
/* Building static library. */
# define UV_EXTERN /* nothing */
# define UV_EXTERN __declspec(dllexport)
# endif
#elif __GNUC__ >= 4
# define UV_EXTERN
# define UV_EXTERN __attribute__((visibility("default"))) __attribute__((used))
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) /* Sun Studio >= 8 */
# define UV_EXTERN __global
#else
# define UV_EXTERN /* nothing */
# define UV_EXTERN
#endif

#include "uv/errno.h"
Expand Down

0 comments on commit 0d164b1

Please sign in to comment.