Skip to content

Commit d5ef2ab

Browse files
committed
Fix C includes for bool, int64_t, and size_t
1 parent a40336d commit d5ef2ab

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

source/pdal/pdalc_config.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ namespace capi
4646
extern "C"
4747
{
4848
#else
49-
#include <stddef.h>
50-
#include <stdbool.h>
49+
#include <stddef.h> // for size_t
5150
#endif
5251
/**
5352
* Retrieves the path to the GDAL data directory.

source/pdal/pdalc_dimtype.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ namespace capi
4545
{
4646
extern "C"
4747
{
48+
#else
49+
#include <stddef.h> // for size_t
4850
#endif
4951
/**
5052
* Returns the number of elements in a dimension type list.

source/pdal/pdalc_pipeline.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ extern "C"
4747
{
4848
#else
4949
#include <stdbool.h> // for bool
50+
#include <stddef.h> // for size_t
5051
#include <stdint.h> // for int64_t
5152
#endif /* __cplusplus */
5253

source/pdal/pdalc_pointlayout.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ namespace capi
4646

4747
extern "C"
4848
{
49+
#else
50+
#include <stddef.h> // for size_t
4951
#endif
5052
/**
5153
* Returns the list of dimension types used by the provided `layout`.

source/pdal/pdalc_pointview.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ extern "C"
4747
{
4848
#else
4949
#include <stdbool.h> // for bool
50+
#include <stddef.h> // for size_t
5051
#include <stdint.h> // for uint64_t
5152
#endif
5253
/**

0 commit comments

Comments
 (0)