Commit 91d27d99 authored by Donald Haase's avatar Donald Haase
Browse files

Remove some extraneous dreamcast changes from utils.c

Also add stdlib to fix some warnings.
parent 98e0f9e2
......@@ -17,6 +17,7 @@
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <ctype.h>
#if defined(HAVE_LIMITS_H)
......@@ -80,8 +81,6 @@ void gtk_menu_ensure_uline_accel_group ()
}
#endif
#ifndef DREAMCAST
#ifndef BENCHMARK
static double osd_getTime(void)
{
......@@ -126,33 +125,9 @@ static void osd_sleep(double s)
}
#endif /* !BENCHMARK */
#else /* DREAMCAST */
static double osd_getTime(void)
{/*
struct timeval tp;
gettimeofday(&tp, NULL);
return tp.tv_sec + 1e-6 * tp.tv_usec;
*/
return 0;
}
static void osd_sleep(double s)
{
/*
if (s > 0)
{
timer_spin_sleep(something
}*/
}
#endif /* DREAMCAST */
void
wait_next_vsync()
{
#ifndef DREAMCSAT
#ifndef BENCHMARK
static double lasttime = 0, lastcurtime = 0, frametime = 0.1;
double curtime;
......@@ -170,7 +145,6 @@ wait_next_vsync()
if ((lasttime + deltatime) < curtime)
lasttime = curtime;
#endif
#endif /*DREAMCSAT*/
}
#if defined(WIN32)
......@@ -521,7 +495,7 @@ strupr(char *s)
return t;
}
#if !defined(FREEBSD) //&& !defined(DREAMCAST)
#if !defined(FREEBSD)
char *
strcasestr (const char *s1, const char *s2)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment