mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
build(win): export extern symbols for use in FFI #22756
Makes `extern` variables accessible through ffi on Windows. Follow-up to https://github.com/neovim/neovim/pull/15999
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
// This is an open source non-commercial project. Dear PVS-Studio, please check
|
||||
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
|
||||
|
||||
#define EXTERN
|
||||
// Make sure extern symbols are exported on Windows
|
||||
#ifdef WIN32
|
||||
# define EXTERN __declspec(dllexport)
|
||||
#else
|
||||
# define EXTERN
|
||||
#endif
|
||||
#include <assert.h>
|
||||
#include <limits.h>
|
||||
#include <msgpack/pack.h>
|
||||
|
Reference in New Issue
Block a user