]> git.proxmox.com Git - libgit2.git/blobdiff - src/win32/msvc-compat.h
New upstream version 1.3.0+dfsg.1
[libgit2.git] / src / win32 / msvc-compat.h
index 4cf471f1d3c394388d088e0c08b08802c48c6260..03f9f36dc9270044a1a0618c70319bda1ce84461 100644 (file)
@@ -23,6 +23,14 @@ typedef SSIZE_T ssize_t;
 
 #endif
 
-#define GIT_STDLIB_CALL __cdecl
+/*
+ * Offer GIT_LIBGIT2_CALL for our calling conventions (__cdecl, always).
+ * This is useful for providing callbacks to userspace code.
+ *
+ * Offer GIT_SYSTEM_CALL for the system calling conventions (__stdcall on
+ * Win32).  Useful for providing callbacks to system libraries.
+ */
+#define GIT_LIBGIT2_CALL __cdecl
+#define GIT_SYSTEM_CALL NTAPI
 
 #endif