From 00625f76e922c0b12a14cbb8d9e0d8fa5714e130 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 28 Apr 2011 20:16:11 +0000 Subject: [PATCH] core: don't explicitly use std:: prefix when the platform may not recognise it. --- src/matrix.h | 3 ++- src/numeric.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/matrix.h b/src/matrix.h index 7485a598..f79fd14a 100644 --- a/src/matrix.h +++ b/src/matrix.h @@ -113,7 +113,8 @@ namespace lol \ inline float len() const \ { \ - return std::sqrtf((float)sqlen()); \ + using namespace std; \ + return sqrtf((float)sqlen()); \ } template struct Vec2; diff --git a/src/numeric.h b/src/numeric.h index 8f72aa9f..7fd0ed31 100644 --- a/src/numeric.h +++ b/src/numeric.h @@ -26,7 +26,8 @@ namespace lol /* Random float value */ static inline float RandF() { - return (float)std::rand() / RAND_MAX; + using namespace std; + return (float)rand() / RAND_MAX; } static inline float RandF(float val)