1
0
forked from 0ad/0ad
0ad/source/lib/sysdep/sysdep.cpp
janwas 28e50ab752 - sysdep: moved posix versions of display_msg etc. to new unix.cpp
- 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.
2005-06-21 16:44:12 +00:00

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