Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 diff -Naurb src2/header.h src/header.h | |
| 2 --- src2/header.h 2016-08-12 18:09:40.819477666 -0700 | |
| 3 +++ src/header.h 2016-08-12 18:07:15.157315463 -0700 | |
| 4 @@ -23,7 +23,9 @@ | |
| 5 #include <sys/resource.h> /* ditto */ | |
| 6 #endif | |
| 7 | |
| 8 +#ifndef __EMSCRIPTEN__ | |
| 9 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.
| |
| 10 +#endif | |
| 11 void mark_allocation_point(void); | |
| 12 void reset_allocation_point(void); | |
| 13 void initialize_memory(void); | |
| 14 diff -Naurb src2/strncasecmp.c src/strncasecmp.c | |
| 15 --- src2/strncasecmp.c 2016-08-12 18:09:40.819477666 -0700 | |
| 16 +++ src/strncasecmp.c 2016-08-12 18:09:14.667089431 -0700 | |
| 17 @@ -3,7 +3,9 @@ | |
| 18 | |
| 19 #ifdef TEST | |
| 20 #include <stdio.h> | |
| 21 +#ifndef __EMSCRIPTEN__ | |
| 22 int strncasecmp(const char *s1, const char *s2, size_t n); | |
| 23 +#endif | |
| 24 | |
| 25 int main (int argc, char *argv[]) { | |
| 26 if (argc != 4) { | |
| 27 @@ -15,6 +17,7 @@ | |
| 28 } | |
| 29 #endif | |
| 30 | |
| 31 +#ifndef __EMSCRIPTEN__ | |
| 32 int strncasecmp(const char *s1, const char *s2, size_t n) | |
| 33 { | |
| 34 | |
| 35 @@ -35,5 +38,6 @@ | |
| 36 if (*j) return 1; | |
| 37 return 0; | |
| 38 } | |
| 39 +#endif | |
| 40 | |
| 41 | |
| OLD | NEW |