Skip to content

Forward OGR type declarations are fragile #4607

@rouault

Description

@rouault

In GDAL master (and 3.10.1RC1, but now reverted for 3.10.1RC2), OSGeo/gdal#11608 made sure that the expansion of the OGRSpatialReferenceH handle was consistent with whether GDAL was built in debug or non-debug mode, since the definition of some opaque types is different in both modes (which affect GDAL C++ ABI, but not the C one).
However PDAL's pdal/Geometry.hpp has a using OGRSpatialReferenceH = void *; which is only valid for non-GDAL debug builds
It would be safer if PDAL wouldn't redefine GDAL's types.

cf https://lists.osgeo.org/pipermail/gdal-dev/2025-January/060023.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions