Ticket #160 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

service.h: Windows compile errors of C89-style declarations

Reported by: jmckenna Owned by:
Priority: major Milestone:
Component: Development platform Version:
Keywords: Cc: jmckenna@…

Description

Using Visual Studio 2012, the following errors are thrown:

ulinet.c
d:\build\mapserver-buildkit-2012\zoo-project-svn-20170731\zoo-project\zoo-kernel\service.h(58) : error C2143: syntax error : missing ';' before 'type'
d:\build\mapserver-buildkit-2012\zoo-project-svn-20170731\zoo-project\zoo-kernel\service.h(59) : error C2065: 'theTime' : undeclared identifier
d:\build\mapserver-buildkit-2012\zoo-project-svn-20170731\zoo-project\zoo-kernel\service.h(59) : warning C4133: 'function' : incompatible types - from 'int *' to '__timeb64 *'
d:\build\mapserver-buildkit-2012\zoo-project-svn-20170731\zoo-project\zoo-kernel\service.h(60) : error C2065: 'theTime' : undeclared identifier
d:\build\mapserver-buildkit-2012\zoo-project-svn-20170731\zoo-project\zoo-kernel\service.h(60) : error C2224: left of '.time' must have struct/union type
d:\build\mapserver-buildkit-2012\zoo-project-svn-20170731\zoo-project\zoo-kernel\service.h(61) : error C2065: 'theTime' : undeclared identifier
d:\build\mapserver-buildkit-2012\zoo-project-svn-20170731\zoo-project\zoo-kernel\service.h(61) : error C2224: left of '.millitm' must have struct/union type

This is due to the C89-style requirement, where variables must be declared at beginning of scope.

Attachments (1)

service.patch (415 bytes) - added by jmckenna 3 years ago.
declare at beginning of scope

Download all attachments as: .zip

Change History

Changed 3 years ago by jmckenna

declare at beginning of scope

Changed 3 years ago by djay

This patch looks perfectly reasonable to me.

To be integrated.

Changed 3 years ago by jmckenna

  • cc jmckenna@… added
  • status changed from new to closed
  • resolution set to fixed

applied to master in changeset:838

Note: See TracTickets for help on using tickets.

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