forked from 0ad/0ad
janwas
28e50ab752
- add new portable display_error (and convenience macro DISPLAY_ERROR, if advanced params aren't needed; don't want to break C compat). this is the old assert dialog and more; allows ErrorReaction (see sysdep.h) to be carried out according to users wishes. - add win_is_locked for deadlock avoidance This was SVN commit r2420.
31 lines
326 B
C++
Executable File
31 lines
326 B
C++
Executable File
#include "precompiled.h"
|
|
|
|
#include "lib.h"
|
|
#include "sysdep.h"
|
|
#include <memory.h>
|
|
#include <stdarg.h>
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
double round(double x)
|
|
{
|
|
return (long)(x + 0.5);
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
#ifndef 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
|