mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 20:05:02 +00:00
Do proper symbol exports on MSVC
Yes, if you are wondering why the shared library was failing to build under MSVC, it's because it was empty. Oh wow. Signed-off-by: Vicent Marti <tanoku@gmail.com>
This commit is contained in:
parent
322086f9b1
commit
25e9b4dd44
@ -19,6 +19,8 @@
|
|||||||
# define GIT_EXTERN(type) extern \
|
# define GIT_EXTERN(type) extern \
|
||||||
__attribute__((visibility("default"))) \
|
__attribute__((visibility("default"))) \
|
||||||
type
|
type
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
# define GIT_EXTERN(type) __declspec(dllexport) type
|
||||||
#else
|
#else
|
||||||
# define GIT_EXTERN(type) extern type
|
# define GIT_EXTERN(type) extern type
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user