Opened 15 years ago

Closed 15 years ago

#20 closed defect (fixed)

Patch with ifndef for STDC_HEADERS in geo_config.h.vc

Reported by: mloskot Owned by: warmerdam
Priority: normal Milestone:
Component: libgeotiff Version:
Keywords: Cc:

Description

When using GeoTIFF and GDAL from recent OSGeo4W as development dependencies, Visual C++ complains about STDC_HEADERS re-definition:

c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro redefinition
    c:\osgeo4w\include\cpl_config.h(37) : see previous definition of 'STDC_HEADERS'

Perhaps it could be a good idea to make all these definitions consistent.

I attached simple patch that quietens this warning and wraps other definitions with #ifndef test.

Attachments (1)

geo_config.h.vc-ifndef-wrap.patch (871 bytes ) - added by mloskot 15 years ago.
Wrap geo_config.h.vc defines with #ifndef test

Download all attachments as: .zip

Change History (2)

by mloskot, 15 years ago

Wrap geo_config.h.vc defines with #ifndef test

comment:1 by hobu, 15 years ago

Resolution: fixed
Status: newclosed

Applied in r1676. Thanks for the patch!

Note: See TracTickets for help on using tickets.