diff --git a/hpvm/test/include/hpvm.h b/hpvm/test/include/hpvm.h
index 1e31c98946f00e32d84933fe4bfd443e65cb92a9..95482a5ffdd783d74654ee565f2846f163748159 100644
--- a/hpvm/test/include/hpvm.h
+++ b/hpvm/test/include/hpvm.h
@@ -11,6 +11,11 @@
 #endif
 
 #include "../../include/SupportHPVM/HPVMHint.h"
+#ifdef __cplusplus
+#include <cstddef>
+#else
+#include <stddef.h>
+#endif
 
 #ifndef __cplusplus
 #define noexcept