Ignore:
Timestamp:
Jun 30, 2015, 4:49:08 PM (9 years ago)
Author:
knut
Message:

Added snprintf for Visual Studio compiler. In readVSIFile(), changed type of file_status variable to VSIStatBufL. Some minor changes neccessary for building on Windows, particularly in service_internal_php.c. Added PHP support in Windows makefile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service.h

    r682 r712  
    3838#define strncasecmp _strnicmp
    3939#define strcasecmp _stricmp
    40 #else
    41 #define snprintf sprintf_s
     40//#else
     41//#define snprintf sprintf_s
    4242#endif
    4343#define zStrdup _strdup
     
    6464  return 0; // The gettimeofday() function shall return 0 on success
    6565}
     66
    6667#else
    6768/**
     
    106107#include <stdlib.h>
    107108#include <ctype.h>
    108 #ifndef WIN32
     109
    109110#include <stdio.h>
    110 #endif
     111
    111112#include <string.h>
    112113#ifndef WIN32
     
    323324  ZOO_DLL_EXPORT void mapsToCharXXX(maps*,char***);
    324325  ZOO_DLL_EXPORT void charxxxToMaps(char***,maps**);
    325 
     326#ifdef _MSC_VER
     327  // snprintf for Visual Studio compiler;
     328  // it is also used by services (e.g., GetStatus), therefore exported to shared library
     329  ZOO_DLL_EXPORT int snprintf(char *buffer, size_t n, const char *format, ...);
     330#endif 
    326331#ifdef __cplusplus
    327332}
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