summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-09-04 01:22:04 +0200
committerarchshift <admin@archshift.com>2014-09-04 01:23:03 +0200
commite1206568ec71c0e7017c1f764fdc146ba86ce30a (patch)
treef3e6dcfd16d1d1dc4cea4717efc30e04857a1111 /src/Globals.h
parentIn 1.8, carrots and potatoes yield one less hunger point. (diff)
downloadcuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.tar
cuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.tar.gz
cuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.tar.bz2
cuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.tar.lz
cuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.tar.xz
cuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.tar.zst
cuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.zip
Diffstat (limited to '')
-rw-r--r--src/Globals.h40
1 files changed, 4 insertions, 36 deletions
diff --git a/src/Globals.h b/src/Globals.h
index a782de325..de1024010 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -217,10 +217,10 @@ template class SizeChecker<UInt16, 2>;
// CRT stuff:
#include <sys/stat.h>
-#include <cassert>
-#include <cstdio>
-#include <cmath>
-#include <cstdarg>
+#include <assert.h>
+#include <stdio.h>
+#include <math.h>
+#include <stdarg.h>
@@ -370,38 +370,6 @@ T Clamp(T a_Value, T a_Min, T a_Max)
-/** Floors a_Value, then casts it to C (an int by default) */
-template <typename C = int>
-C FloorD(double a_Value)
-{
- return static_cast<C>(std::floor(a_Value));
-}
-
-/** Floors a_Value, then casts it to C (an int by default) */
-template <typename C = int>
-C FloorF(double a_Value)
-{
- return static_cast<C>(std::floorf(a_Value));
-}
-
-/** Ciels a_Value, then casts it to C (an int by default) */
-template <typename C = int>
-C CeilD(double a_Value)
-{
- return static_cast<C>(std::ceil(a_Value));
-}
-
-/** Ciels a_Value, then casts it to C (an int by default) */
-template <typename C = int>
-C CeilF(double a_Value)
-{
- return static_cast<C>(std::ceilf(a_Value));
-}
-
-
-
-
-
#ifndef TOLUA_TEMPLATE_BIND
#define TOLUA_TEMPLATE_BIND(x)
#endif