Skip to content

C API: do not include cinttypes for MSVC 2015+ #179

@SpaceIm

Description

@SpaceIm

In https://github.com/libspatialindex/libspatialindex/blob/1.9.3/include/spatialindex/capi/sidx_config.h

cinttypes is included if _MSC_VER >= 1900. But cinttypes is C++. Moreover, there is logic for _MSC_VER <= 1500 and _MSC_VER >= 1900, but nothing between them.

Instead, stdint.h for _MSC_VER > 1500 can bridge the gap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions