Changeset 364 for trunk/thirds


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.

Location:
trunk/thirds
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/thirds/cgic206/cgic.c

    r348 r364  
    145145        cgiGetenv(&cgiQueryString, "QUERY_STRING");
    146146        cgiSid=NULL;
    147         if(strcmp(cgiQueryString,"")==0 && argc>=2){
     147        if(cgiQueryString!=NULL && argc>=2){
    148148                cgiQueryString=argv[1];
    149149                if(argc>2){
  • trunk/thirds/cgic206/makefile.vc

    r216 r364  
    1 GEODIR=C:/OSGeo4W
    2 DESTDIR=C:\OSGeo4W
     1GEODIR=\MMBK\SRCS\fcgi-2.4.1-SNAP-0311112127\
     2DESTDIR=..
    33CFLAGS=-g -Wall
    44CC=cl /TP
    5 LIBS=$(GEODIR)/lib/libfcgi.lib /nologo
     5LIBS=$(GEODIR)/libfcgi/Release/libfcgi.lib /nologo
    66LIBS1=./libcgic.lib
    77
    8 CFLAGS=/EHa /nologo /DCRT_SECURE_NO_WARNING /MT /W2 /O2 /D "WIN32" \
    9         -I $(GEODIR)/include
     8CFLAGS=/EHa /nologo /DCRT_SECURE_NO_WARNING /MD /W2 /O2 /D "WIN32" \
     9        -I $(GEODIR)\include
    1010
    1111all: libcgic.lib #cgictest.exe capture.exe
  • trunk/thirds/include/unistd.h

    r348 r364  
    33#include <io.h>
    44#include <process.h>
     5#define mode_t int
     6#define strtok_r strtok_s
     7#define S_IRWXU _S_IREAD|_S_IWRITE
     8#define S_IRGRP _S_IREAD|_S_IWRITE
     9#define S_IROTH _S_IREAD|_S_IWRITE
     10#define S_IXGRP _S_IREAD|_S_IWRITE
     11#define S_IXOTH _S_IREAD|_S_IWRITE
     12#define S_IWOTH _S_IREAD|_S_IWRITE
     13#define S_IRUSR _S_IREAD
     14#define S_IXGRP _S_IREAD|_S_IWRITE
     15#define S_IWGRP _S_IREAD|_S_IWRITE
     16#define S_IWUSR _S_IREAD|_S_IWRITE
    517
    618#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