diff --git a/src/bindings/swig/hammer.i b/src/bindings/swig/hammer.i
index ac8c47f4c16d7899bc0f7557b73fd17d83788acc..f784f31e7c69bb9341d8f01410cd3fcedf3fae03 100644
--- a/src/bindings/swig/hammer.i
+++ b/src/bindings/swig/hammer.i
@@ -1,5 +1,9 @@
 %module hammer
 
+%include "typemaps.i"
+%include "stdint.i"
+
+ // All the include paths are relative to the build, i.e., ../../. If you need to build these manually (i.e., not with scons), keep that in mind.
 %{
 #include "allocator.h"
 #include "hammer.h"
@@ -8,4 +12,5 @@
 %include "allocator.h"
 %include "hammer.h"
 
+%apply const char* { const uint8_t* }