Changeset 835 for trunk/zoo-project


Ignore:
Timestamp:
Aug 3, 2017, 8:37:52 PM (2 years ago)
Author:
jmckenna
Message:

handle strcasestr on Windows (ticket#158)

File:
1 edited

Legend:

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

    r790 r835  
    6363#ifndef FALSE
    6464#define FALSE -1
     65#endif
     66
     67#ifdef WIN32
     68extern "C"
     69{
     70  __declspec (dllexport) char *strcasestr (char const *a, char const *b)
     71#ifndef USE_MS
     72  {
     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#else
     85   ;
     86#endif
     87}
    6588#endif
    6689
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