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)