Ignore:
Timestamp:
Oct 10, 2012, 10:11:10 AM (12 years ago)
Author:
djay
Message:

Add the capability to use a specific Python version by detecting if python-VERS-config exists or if python-config-VERS exists. Add NEED_STRCASESTR to nmake.opt for MapServer? support. Fix for the name of layer class on Unix/Windows?. Provide definition of strcasestr if and only if MapServer? was not activated.

File:
1 edited

Legend:

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

    r368 r370  
    8787#ifdef WIN32
    8888extern "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
    101106}
    102107#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