diff --git a/share/qtcreator/gdbmacros/gdbmacros.cpp b/share/qtcreator/gdbmacros/gdbmacros.cpp
index 7746670f381edef376d3696c6e5571a7d1c92888..df2f1b9565a5e9aab5f9fea49f238452a2e52992 100644
--- a/share/qtcreator/gdbmacros/gdbmacros.cpp
+++ b/share/qtcreator/gdbmacros/gdbmacros.cpp
@@ -57,6 +57,10 @@
 #include <QtCore/QTextStream>
 #include <QtCore/QVector>
 
+#ifndef Q_OS_WIN
+#    include <stdint.h>
+#endif
+
 #if (QT_POINTER_SIZE==4) // How to printf/scanf a pointer (uintptr_t)
 #    define POINTER_PRINTFORMAT "0x%x"
 #else