]> sigrok.org Git - pulseview.git/commitdiff
Add missing #include <limits.h>.
authorUwe Hermann <redacted>
Thu, 24 Jan 2013 21:34:49 +0000 (22:34 +0100)
committerUwe Hermann <redacted>
Thu, 24 Jan 2013 21:35:23 +0000 (22:35 +0100)
The file ruler.cpp uses INT_MAX from <limits.h>, so add the #include line.
Without this, the build would fail on some systems (due to -Werror).

pv/view/ruler.cpp

index ba4bd042393ec0590e9e2942ece671fa8a3aa2b6..f4cbc1cab5a0cf1c3784b07b3570ff1b9f4b03d2 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <assert.h>
 #include <math.h>
+#include <limits.h>
 
 #include <QMouseEvent>
 #include <QPainter>