From 11dba139329240bf70dc2fdc0b803f292b338710 Mon Sep 17 00:00:00 2001 From: driAn Date: Fri, 22 Aug 2008 20:04:54 +0000 Subject: [PATCH] removed inlined round() git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2353 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/tools.cpp | 2 +- source/src/tools.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/tools.cpp b/source/src/tools.cpp index 162847ff..afad080e 100644 --- a/source/src/tools.cpp +++ b/source/src/tools.cpp @@ -277,5 +277,5 @@ bool isbigendian() return !(*((char *)(&one))); } -inline float round(float x) { return floor(x + 0.5f); } +float round(float x) { return floor(x + 0.5f); } diff --git a/source/src/tools.h b/source/src/tools.h index 30e0418b..6f9228f0 100644 --- a/source/src/tools.h +++ b/source/src/tools.h @@ -508,7 +508,7 @@ extern bool cmpb(void *b, int n, enet_uint32 c); extern bool cmpf(char *fn, enet_uint32 c); extern void endianswap(void *, int, int); extern bool isbigendian(); -extern inline float round(float x); +extern float round(float x); #endif