Ticket #160 (closed defect: fixed)
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)
Change History
Note: See
TracTickets for help on using
tickets.