Include stdint.h, fix build with GCC 15 #5

Open
koolkhel wants to merge 1 commits from koolkhel/cpp-btree:gcc15-stdint into master
First-time contributor

Description

btree.h uses uint8_t and uint16_t but got them only transitively through other standard headers. GCC 15 libstdc++ no longer includes them, so the header fails with:

btree.h:296:5: error: 'uint16_t' was not declared in this scope
btree.h:297:5: error: 'uint8_t' was not declared in this scope

Include stdint.h explicitly.

Tested: a minimal btree_map program with GCC 15.3.1 fails to compile before this change and builds and runs after it.

Contributor Name

Yury Luneff (MIND Software LLC, https://mindsw.io)

### Description btree.h uses uint8_t and uint16_t but got them only transitively through other standard headers. GCC 15 libstdc++ no longer includes them, so the header fails with: ``` btree.h:296:5: error: 'uint16_t' was not declared in this scope btree.h:297:5: error: 'uint8_t' was not declared in this scope ``` Include stdint.h explicitly. Tested: a minimal btree_map program with GCC 15.3.1 fails to compile before this change and builds and runs after it. ### Contributor Name Yury Luneff (MIND Software LLC, https://mindsw.io)
koolkhel added 1 commit 2026-11-20 11:09:55 +03:00
btree.h uses uint8_t and uint16_t but got them only transitively through
other standard headers. GCC 15 libstdc++ no longer includes them, so the
header fails with "'uint16_t' was not declared in this scope".
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u gcc15-stdint:koolkhel-gcc15-stdint
git checkout koolkhel-gcc15-stdint
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vitalif/cpp-btree#5
No description provided.