Changeset 370 for trunk/zoo-project/zoo-kernel/zoo_service_loader.c
- Timestamp:
- Oct 10, 2012, 10:11:10 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r368 r370 87 87 #ifdef WIN32 88 88 extern "C" { 89 __declspec(dllexport) char *strcasestr(char const *a, char const *b) { 90 char *x=_strdup(a); 91 char *y=_strdup(b); 92 93 x=_strlwr(x); 94 y=_strlwr(y); 95 char *pos = strstr(x, y); 96 char *ret = pos == NULL ? NULL : (char *)(a + (pos-x)); 97 free(x); 98 free(y); 99 return ret; 100 } 89 __declspec(dllexport) char *strcasestr(char const *a, char const *b) 90 #ifndef USE_MS 91 { 92 char *x=_strdup(a); 93 char *y=_strdup(b); 94 95 x=_strlwr(x); 96 y=_strlwr(y); 97 char *pos = strstr(x, y); 98 char *ret = pos == NULL ? NULL : (char *)(a + (pos-x)); 99 free(x); 100 free(y); 101 return ret; 102 }; 103 #else 104 ; 105 #endif 101 106 } 102 107 #endif
Note: See TracChangeset
for help on using the changeset viewer.