summaryrefslogtreecommitdiff
blob: 1fd972978ba3dd5dc51f71448e10b2773ba39f92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- include/muParserTest.h.orig
+++ include/muParserTest.h
@@ -26,6 +26,7 @@
 #ifndef MU_PARSER_TEST_H
 #define MU_PARSER_TEST_H
 
+#include <cstdlib>
 #include <string>
 #include <numeric> // for accumulate
 #include "muParser.h"
@@ -87,12 +88,12 @@
 
         static value_type Rnd(value_type v)
         {
-          return (value_type)(1+(v*std::rand()/(RAND_MAX+1.0)));
+          return (value_type)(1+(v*rand()/(RAND_MAX+1.0)));
         }
 
         static value_type RndWithString(const char_type*)
         {
-          return (value_type)( 1 + (1000.0f * std::rand() / (RAND_MAX + 1.0) ) );
+          return (value_type)( 1 + (1000.0f * rand() / (RAND_MAX + 1.0) ) );
         }
 
         static value_type Ping()