summaryrefslogtreecommitdiff
path: root/src/git/common.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-11-24 17:48:31 +0200
committerVicent Marti <tanoku@gmail.com>2010-11-24 17:56:35 +0200
commit25e9b4dd449d58af5edefe33d383292d6ead5003 (patch)
tree2c73d0ad855552e05b788cd89de3daca57ab94c5 /src/git/common.h
parent322086f9b1291b05de7197ac53491ad1ae79ad2e (diff)
downloadlibgit2-25e9b4dd449d58af5edefe33d383292d6ead5003.tar.gz
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>
Diffstat (limited to 'src/git/common.h')
-rw-r--r--src/git/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/git/common.h b/src/git/common.h
index cbc77e991..cb1684863 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