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>
diff --git a/src/git/common.h b/src/git/common.h
index cbc77e9..cb16848 100644
--- a/src/git/common.h
+++ b/src/git/common.h
@@ -19,6 +19,8 @@
# define GIT_EXTERN(type) extern \
__attribute__((visibility("default"))) \
type
+#elif defined(_MSC_VER)
+# define GIT_EXTERN(type) __declspec(dllexport) type
#else
# define GIT_EXTERN(type) extern type
#endif