aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-05-03 15:14:02 -0400
committerDavid Robillard <d@drobilla.net>2021-05-03 18:30:39 -0400
commitb483856ff188041f58a934c32c963cb49416a52d (patch)
tree0353e749cd09ce4b97e36c1bdf333c3cb7f67c08
parent68d5d5c3bc96c85832664c18b69227b76e68a008 (diff)
downloadpugl-b483856ff188041f58a934c32c963cb49416a52d.tar.gz
pugl-b483856ff188041f58a934c32c963cb49416a52d.tar.bz2
pugl-b483856ff188041f58a934c32c963cb49416a52d.zip
Clean up includes and add mappings for old versions of IWYU
-rw-r--r--.includes.imp13
-rw-r--r--src/implementation.c2
2 files changed, 14 insertions, 1 deletions
diff --git a/.includes.imp b/.includes.imp
index 74a3105..64472e0 100644
--- a/.includes.imp
+++ b/.includes.imp
@@ -1,4 +1,15 @@
[
{ "include": [ "<ext/alloc_traits.h>", "private", "<string>", "public", ] },
- { "include": [ "<ext/alloc_traits.h>", "private", "<vector>", "public", ] }
+ { "include": [ "<ext/alloc_traits.h>", "private", "<vector>", "public", ] },
+ { "symbol": [ "bool", "private", "<stdbool.h>", "public" ] },
+ { "symbol": [ "int32_t", "private", "<stdint.h>", "public" ] },
+ { "symbol": [ "int64_t", "private", "<stdint.h>", "public" ] },
+ { "symbol": [ "timespec", "private", "<time.h>", "public" ] },
+ { "symbol": [ "timeval", "private", "<time.h>", "public" ] },
+ { "symbol": [ "uint32_t", "private", "<stdint.h>", "public" ] },
+ { "symbol": [ "uint64_t", "private", "<stdint.h>", "public" ] },
+ { "symbol": [ "uint8_t", "private", "<stdint.h>", "public" ] },
+ { "symbol": [ "uintptr_t", "private", "<stdint.h>", "public" ] },
+
+ { "symbol": [ "uintptr_t", "private", "<cstdint>", "public" ] }
]
diff --git a/src/implementation.c b/src/implementation.c
index 4fe6a8a..6225ac5 100644
--- a/src/implementation.c
+++ b/src/implementation.c
@@ -16,6 +16,8 @@
#include "implementation.h"
+#include "types.h"
+
#include "pugl/pugl.h"
#include <assert.h>