Ignore:
Timestamp:
Aug 7, 2017, 8:53:53 PM (7 years ago)
Author:
jmckenna
Message:

handle duplicate strcasestr declarations on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service.c

    r805 r843  
    15941594  m=&trorf;
    15951595}
     1596
     1597#ifdef WIN32
     1598char *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
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png