Changeset 843
- Timestamp:
- Aug 7, 2017, 8:53:53 PM (7 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service.c
r805 r843 1594 1594 m=&trorf; 1595 1595 } 1596 1597 #ifdef WIN32 1598 char *strcasestr (char const *a, char const *b) 1599 #ifndef USE_MS 1600 { 1601 char *x = zStrdup (a); 1602 char *y = zStrdup (b); 1603 1604 x = _strlwr (x); 1605 y = _strlwr (y); 1606 char *pos = strstr (x, y); 1607 char *ret = pos == NULL ? NULL : (char *) (a + (pos - x)); 1608 free (x); 1609 free (y); 1610 return ret; 1611 }; 1612 #else 1613 ; 1614 #endif 1615 #endif -
trunk/zoo-project/zoo-kernel/service.h
r842 r843 32 32 #else 33 33 #define ZOO_DLL_EXPORT 34 #endif 35 36 #ifdef WIN32 37 ZOO_DLL_EXPORT char *strcasestr (char const *,char const *); 34 38 #endif 35 39 -
trunk/zoo-project/zoo-kernel/zoo_loader.c
r835 r843 63 63 #ifndef FALSE 64 64 #define FALSE -1 65 #endif66 67 #ifdef WIN3268 extern "C"69 {70 __declspec (dllexport) char *strcasestr (char const *a, char const *b)71 #ifndef USE_MS72 {73 char *x = zStrdup (a);74 char *y = zStrdup (b);75 76 x = _strlwr (x);77 y = _strlwr (y);78 char *pos = strstr (x, y);79 char *ret = pos == NULL ? NULL : (char *) (a + (pos - x));80 free (x);81 free (y);82 return ret;83 };84 #else85 ;86 #endif87 }88 65 #endif 89 66 -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r817 r843 40 40 #include "ulinet.h" 41 41 42 #include <libint l.h>42 #include <libinti.h> 43 43 #include <locale.h> 44 44 #include <string.h> … … 107 107 #ifndef WIN32 108 108 extern char **environ; 109 #endif110 111 112 #ifdef WIN32113 extern "C"114 {115 __declspec (dllexport) char *strcasestr (char const *a, char const *b)116 #ifndef USE_MS117 {118 char *x = zStrdup (a);119 char *y = zStrdup (b);120 121 x = _strlwr (x);122 y = _strlwr (y);123 char *pos = strstr (x, y);124 char *ret = pos == NULL ? NULL : (char *) (a + (pos - x));125 free (x);126 free (y);127 return ret;128 };129 #else130 ;131 #endif132 }133 109 #endif 134 110
Note: See TracChangeset
for help on using the changeset viewer.