Группа :: Система/Библиотеки
Пакет: libmuparser
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: libmuparser-gcc4.3.patch
Скачать
Скачать
--- include/muParserTest.h.orig 2007-07-15 01:21:32 +0400
+++ include/muParserTest.h 2008-11-15 00:25:26 +0300
@@ -27,6 +27,7 @@
#define MU_PARSER_TEST_H
#include <string>
+#include <stdlib.h>
#include <numeric> // for accumulate
#include "muParser.h"
#include "muParserInt.h"
@@ -87,12 +88,12 @@ namespace mu
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()