summaryrefslogtreecommitdiff
path: root/src/unix
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-08-18 02:13:51 +0200
committerVicent Marti <tanoku@gmail.com>2011-08-18 02:35:28 +0200
commit84dd3820d41046d35cb8b3bf65e67d0eb7e68f6c (patch)
tree9a9f028446162d5effe4f5458f60c9bdb628f81a /src/unix
parentc85e08b1bda30c1a7e0a6e804f81665047fd8005 (diff)
downloadlibgit2-84dd3820d41046d35cb8b3bf65e67d0eb7e68f6c.tar.gz
posix: Properly handle `snprintf` in all platforms
Diffstat (limited to 'src/unix')
-rw-r--r--src/unix/posix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/posix.h b/src/unix/posix.h
index 8eebbd4d8..f355844d9 100644
--- a/src/unix/posix.h
+++ b/src/unix/posix.h
@@ -12,5 +12,6 @@
#define p_realpath(p, po) realpath(p, po)
#define p_fnmatch(p, s, f) fnmatch(p, s, f)
#define p_vsnprintf(b, c, f, a) vsnprintf(b, c, f, a)
+#define p_snprintf(b, c, f, ...) snprintf(b, c, f, __VA_ARGS__)
#endif