Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-03-01 02:41:26 +0400
committerRussell Belfer <rb@github.com>2013-03-01 02:41:26 +0400
commitf443a72d334f8f52c3431e6b4181704a3f125d5e (patch)
tree2f1705e97be9e77186f820c794149d6d9147260c /src/common.h
parent97b7137459a64e24fbe5ef16bee254cae6b018a1 (diff)
Fix some deprecation warnings on Windows
This fixes some snprintf and vsnprintf related deprecation warnings we've been having on Windows with recent compilers.
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h
index 48c4b5453..e3a9e1984 100644
--- a/src/common.h
+++ b/src/common.h
@@ -33,11 +33,9 @@
# include "win32/pthread.h"
#endif
-# define snprintf _snprintf
-
#else
-# include <unistd.h>
+# include <unistd.h>
# ifdef GIT_THREADS
# include <pthread.h>
# endif