aboutsummaryrefslogtreecommitdiff
path: root/src/pj_open_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pj_open_lib.c')
-rw-r--r--src/pj_open_lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pj_open_lib.c b/src/pj_open_lib.c
index 08532beb..35d0341f 100644
--- a/src/pj_open_lib.c
+++ b/src/pj_open_lib.c
@@ -35,6 +35,11 @@
#include <string.h>
#include <errno.h>
+#if defined(_MSC_VER)
+// Squelch warnings about unsafe use of sprintf, etc
+# pragma warning (disable: 4996)
+#endif
+
static const char *(*pj_finder)(const char *) = NULL;
static int path_count = 0;
static char **search_path = NULL;