diff --git a/pystencils/include/opencl_stdint.h b/pystencils/include/opencl_stdint.h
index ac74a1454b9031ef4c98f6072e6c695ac402d0a2..14ad55852fe87f42a569fb4159187a27f348e7ce 100644
--- a/pystencils/include/opencl_stdint.h
+++ b/pystencils/include/opencl_stdint.h
@@ -1 +1,16 @@
-typedef long int int64_t;
+#ifndef OPENCL_STDINT
+#define OPENCL_STDINT
+
+typedef unsigned int      uint;
+typedef unsigned int      uint_t;
+
+typedef signed char       int8_t;
+typedef signed short      int16_t;
+typedef signed int        int32_t;
+typedef signed long int   int64_t;
+typedef unsigned char     uint8_t;
+typedef unsigned short    uint16_t;
+typedef unsigned int      uint32_t;
+typedef unsigned long int uint64_t;
+
+#endif