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:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2009-06-17 18:54:59 +0400
committerRamsay Jones <ramsay@ramsay1.demon.co.uk>2009-10-13 19:22:18 +0400
commit5cae6c25279bdd525124b7686d67072059bb0fd5 (patch)
tree6baba0d067c8ce4f23a148cb1b7a256e6fbd76b3 /src/cc-compat.h
parent209849a44961d4fb86fc51710affec6d8c407cf7 (diff)
Disable some msvc "deprecated function" warnings again
In addition to removing the inline #define, commit 209849a also removed a #pragma to disable msvc deprecated function warnings. Without this #pragma, msvc currently issues 19 warnings related to "deprecated insecure c-library functions", such as strcpy() and 22 warnings related to "deprecated POSIX function names", such as open(). In order to supress these warnings, re-instate the #pragma. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src/cc-compat.h')
-rw-r--r--src/cc-compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cc-compat.h b/src/cc-compat.h
index 8997caa24..a256495f5 100644
--- a/src/cc-compat.h
+++ b/src/cc-compat.h
@@ -46,4 +46,10 @@
# define PRIuZ "Iu"
#endif
+/* Micosoft Visual C/C++ */
+#if defined(_MSC_VER)
+/* disable "deprecated function" warnings */
+# pragma warning ( disable : 4996 )
+#endif
+
#endif /* INCLUDE_compat_h__ */