Code

fix a compile failure with g++-4.3
[inkscape.git] / src / svg / svg-color-test.h
index ad25d506c36fbcaa2714f81892838c19016d2a12..b149b7a447edd12ac218cfcd36d39a310384650a 100644 (file)
@@ -1,6 +1,6 @@
-
 #include <cxxtest/TestSuite.h>
 #include <cassert>
+#include <cstdlib>
 
 #include "svg/svg-color.h"
 #include "svg/svg-icc-color.h"
@@ -40,6 +40,7 @@ public:
         }
 
         /* And a few completely random ones. */
+        using std::rand;
         for (unsigned i = 500; i--;) {  /* Arbitrary number of iterations. */
             unsigned const rgb24 = (rand() >> 4) & 0xffffff;
             check_rgb24(rgb24);