summaryrefslogtreecommitdiffstats
path: root/3rdparty/openpgm-svn-r1135/pgm/string.c.c89.patch
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/openpgm-svn-r1135/pgm/string.c.c89.patch')
-rw-r--r--3rdparty/openpgm-svn-r1135/pgm/string.c.c89.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/3rdparty/openpgm-svn-r1135/pgm/string.c.c89.patch b/3rdparty/openpgm-svn-r1135/pgm/string.c.c89.patch
new file mode 100644
index 0000000..8dd3d78
--- /dev/null
+++ b/3rdparty/openpgm-svn-r1135/pgm/string.c.c89.patch
@@ -0,0 +1,39 @@
+65a66,68
+> #ifdef _MSC_VER
+> return _vscprintf (format, args) + 1;
+> #else
+67a71
+> #endif
+80a85
+> {
+81a87
+> {
+85a92,94
+> # ifdef _MSC_VER
+> va_list args2 = args;
+> # else
+87a97
+> # endif
+89a100
+> {
+93a105,106
+> }
+> }
+118a132
+> {
+124a139
+> }
+198a214,216
+> #ifdef _MSC_VER
+> strncpy_s (new_string, len + 1, remainder, len);
+> #else
+199a218
+> #endif
+233c252,254
+< for (unsigned i = 0; str_array[i] != NULL; i++)
+---
+> {
+> unsigned i;
+> for (i = 0; str_array[i] != NULL; i++)
+234a256
+> }