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/zoo_service_loader.c

    r817 r843  
    4040#include "ulinet.h"
    4141
    42 #include <libintl.h>
     42#include <libinti.h>
    4343#include <locale.h>
    4444#include <string.h>
     
    107107#ifndef WIN32
    108108extern char **environ;
    109 #endif
    110 
    111 
    112 #ifdef WIN32
    113 extern "C"
    114 {
    115   __declspec (dllexport) char *strcasestr (char const *a, char const *b)
    116 #ifndef USE_MS
    117   {
    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 #else
    130    ;
    131 #endif
    132 }
    133109#endif
    134110
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