1
0
forked from 0ad/0ad
0ad/source/lib/sysdep/sysdep.cpp

31 lines
323 B
C++
Raw Normal View History

#include "precompiled.h"
#include "lib.h"
#include "sysdep.h"
2004-07-15 21:59:27 +02:00
#include <memory.h>
#include <stdarg.h>
#if MSC_VERSION
double round(double x)
{
return (long)(x + 0.5);
}
#endif
#if !HAVE_C99
float fminf(float a, float b)
{
return (a < b)? a : b;
}
float fmaxf(float a, float b)
{
return (a > b)? a : b;
}
#endif