Ignore:
Timestamp:
Sep 29, 2012, 3:59:06 PM (12 years ago)
Author:
djay
Message:

Update to make ZOO-Kernel able to compile and run from Windows Platforms. A special thanks to Espen Messel, Knut Landmark and Benrd Härtwig for providing many patches that I can successfully apply on the SVN source tree and to Farkas for continuing requesting for ZOO-Kernel to run on Windows platforms privately and through the ZOO-Discuss mailing list.

File:
1 edited

Legend:

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

    r348 r364  
    2626#define MALLOC_CHECK 0
    2727
    28 #ifdef WIN32
    29 #include "windows.h"
    30 #endif
    3128/**
    3229 * Specific includes
    3330 */
     31#ifndef WIN32
    3432#include "fcgio.h"
    3533#include "fcgi_config.h"
    3634#include "fcgi_stdio.h"
     35#endif
    3736#include <sys/types.h>
    3837#include <unistd.h>
    3938#include "service_internal.h"
     39#ifdef WIN32
     40#include "windows.h"
     41#define strtok_r strtok_s
     42#endif
    4043
    4144extern "C" {
     
    5558using namespace std;
    5659
     60#ifndef TRUE
    5761#define TRUE 1
     62#endif
     63#ifndef FALSE
    5864#define FALSE -1
     65#endif
    5966
    6067int cgiMain(){
     
    6875  fprintf(cgiOut,"Welcome on ZOO verbose debuging mode \r\n\r\n");
    6976  fflush(cgiOut);
    70 #endif
    71  
    72 #ifdef DEBUG
    7377  fprintf (stderr, "Addr:%s\n", cgiRemoteAddr);
    7478  fprintf (stderr, "RequestMethod: (%s) %d %d\n", cgiRequestMethod,strncasecmp(cgiRequestMethod,"post",4),strncmp(cgiContentType,"text/xml",8)==0 || strncasecmp(cgiRequestMethod,"post",4)==0);
     
    143147  }
    144148  else{
     149#ifdef DEBUG
    145150    dumpMap(tmpMap);
     151#endif
    146152    char **array, **arrayStep;
    147153    if (cgiFormEntries(&array) != cgiFormSuccess) {
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