Index: tests/spec2k/197.parser/diff |
diff --git a/tests/spec2k/197.parser/diff b/tests/spec2k/197.parser/diff |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6ce4cf8cb61641506e5d2ff10910eb423324e72f |
--- /dev/null |
+++ b/tests/spec2k/197.parser/diff |
@@ -0,0 +1,41 @@ |
+diff -Naurb src2/header.h src/header.h |
+--- src2/header.h 2016-08-12 18:09:40.819477666 -0700 |
++++ src/header.h 2016-08-12 18:07:15.157315463 -0700 |
+@@ -23,7 +23,9 @@ |
+ #include <sys/resource.h> /* ditto */ |
+ #endif |
+ |
++#ifndef __EMSCRIPTEN__ |
+ int strncasecmp(const char *s1, const char *s2, size_t); |
Derek Schuff
2016/08/15 17:57:45
This declaration is the same as the one for strnca
ddchen
2016/08/16 04:58:51
Done.
|
++#endif |
+ void mark_allocation_point(void); |
+ void reset_allocation_point(void); |
+ void initialize_memory(void); |
+diff -Naurb src2/strncasecmp.c src/strncasecmp.c |
+--- src2/strncasecmp.c 2016-08-12 18:09:40.819477666 -0700 |
++++ src/strncasecmp.c 2016-08-12 18:09:14.667089431 -0700 |
+@@ -3,7 +3,9 @@ |
+ |
+ #ifdef TEST |
+ #include <stdio.h> |
++#ifndef __EMSCRIPTEN__ |
+ int strncasecmp(const char *s1, const char *s2, size_t n); |
++#endif |
+ |
+ int main (int argc, char *argv[]) { |
+ if (argc != 4) { |
+@@ -15,6 +17,7 @@ |
+ } |
+ #endif |
+ |
++#ifndef __EMSCRIPTEN__ |
+ int strncasecmp(const char *s1, const char *s2, size_t n) |
+ { |
+ |
+@@ -35,5 +38,6 @@ |
+ if (*j) return 1; |
+ return 0; |
+ } |
++#endif |
+ |
+ |