Use mathlib.h in basetypes.h (#175)

This commit is contained in:
In-line 2017-07-17 22:18:45 +04:00 committed by Dmitry Novikov
parent 4545a040c0
commit 0f1f4c002f
2 changed files with 2 additions and 26 deletions

View File

@ -15,6 +15,7 @@
#include "protected_things.h"
#include "commonmacros.h"
#include "mathlib.h"
// For backward compatibilty only...
#include "tier0/platform.h"
@ -44,19 +45,6 @@
#define PAD_NUMBER(number, boundary) \
( ((number) + ((boundary)-1)) / (boundary) ) * (boundary)
#ifndef MATHLIB_H
// In case this ever changes
#define M_PI 3.14159265358979323846
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#endif // MATHLIB_H
#ifndef FALSE
#define FALSE 0
#define TRUE (!FALSE)

View File

@ -15,6 +15,7 @@
#include "protected_things.h"
#include "commonmacros.h"
#include "mathlib.h"
// For backward compatibilty only...
#include "tier0/platform.h"
@ -44,19 +45,6 @@
#define PAD_NUMBER(number, boundary) \
( ((number) + ((boundary)-1)) / (boundary) ) * (boundary)
#ifndef MATHLIB_H
// In case this ever changes
#define M_PI 3.14159265358979323846
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#endif // MATHLIB_H
#ifndef FALSE
#define FALSE 0
#define TRUE (!FALSE)