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

    r682 r712  
    2424
    2525#include "service.h"
     26
     27#ifdef _MSC_VER
     28#include <stdarg.h>
     29/**
     30 * snprintf for Visual Studio compiler.
     31 *
     32 * See https://dxr.mozilla.org/mozilla-central/source/media/mtransport/third_party/nrappkit/src/util/util.c
     33 */
     34int snprintf(char *buffer, size_t n, const char *format, ...)
     35{
     36  va_list argp;
     37  int ret;
     38  va_start(argp, format);
     39  ret = _vscprintf(format, argp);
     40  vsnprintf_s(buffer, n, _TRUNCATE, format, argp);
     41  va_end(argp);
     42  return ret;
     43}
     44#endif
    2645
    2746/**
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