summaryrefslogtreecommitdiffstats
path: root/src/oplist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/oplist.c')
-rw-r--r--src/oplist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/oplist.c b/src/oplist.c
index 6ab6603..33896f9 100644
--- a/src/oplist.c
+++ b/src/oplist.c
@@ -71,8 +71,10 @@ void plist_ostep_set_debug(int debug)
71} 71}
72 72
73#ifndef HAVE_STRNDUP 73#ifndef HAVE_STRNDUP
74#ifndef _MSC_VER
74#pragma GCC diagnostic push 75#pragma GCC diagnostic push
75#pragma GCC diagnostic ignored "-Wshadow" 76#pragma GCC diagnostic ignored "-Wshadow"
77#endif
76static char* strndup(const char* str, size_t len) 78static char* strndup(const char* str, size_t len)
77{ 79{
78 char *newstr = (char *)malloc(len+1); 80 char *newstr = (char *)malloc(len+1);
@@ -82,8 +84,10 @@ static char* strndup(const char* str, size_t len)
82 } 84 }
83 return newstr; 85 return newstr;
84} 86}
87#ifndef _MSC_VER
85#pragma GCC diagnostic pop 88#pragma GCC diagnostic pop
86#endif 89#endif
90#endif
87 91
88static size_t dtostr(char *buf, size_t bufsize, double realval) 92static size_t dtostr(char *buf, size_t bufsize, double realval)
89{ 93{