diff options
author | Russell Belfer <rb@github.com> | 2013-02-28 14:41:26 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-02-28 14:41:26 -0800 |
commit | f443a72d334f8f52c3431e6b4181704a3f125d5e (patch) | |
tree | 2f1705e97be9e77186f820c794149d6d9147260c /src/common.h | |
parent | 97b7137459a64e24fbe5ef16bee254cae6b018a1 (diff) | |
download | libgit2-f443a72d334f8f52c3431e6b4181704a3f125d5e.tar.gz |
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.h | 4 |
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 |