diff --git a/cpp/types.h b/cpp/types.h
index 76c4311..775e740 100644
--- a/cpp/types.h
+++ b/cpp/types.h
@@ -1,5 +1,7 @@
 #pragma once
 
+#include <cstdint>
+
 #include "ffi.h"
 #include "event.h"
 #ifdef _WIN32
