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)
Change History (2)
by , 15 years ago
Attachment: | geo_config.h.vc-ifndef-wrap.patch added |
---|
comment:1 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Applied in r1676. Thanks for the patch!
Note:
See TracTickets
for help on using tickets.
Wrap geo_config.h.vc defines with #ifndef test