microsoft / DiskANN

Graph-structured Indices for Scalable, Fast, Fresh and Filtered Approximate Nearest Neighbor Search
Other
1.16k stars 227 forks source link

fix stdint import to build on g++13 #576

Open MRandl opened 3 months ago

MRandl commented 3 months ago

Reference Issues

Fixes #570

What does this implement/fix? Briefly explain your changes.

ann_exception.h contained a reference to the type uint32_t, which is imported implicitly by g++9 but not g++13, resulting in build failure. We patch this by explicitly including stdint.h (and not cstdint, to avoid changing the namespace in the signatures, upon which some people might depend)

MRandl commented 3 months ago

@microsoft-github-policy-service agree company="EPFL"