Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dreamcast
HuCast
Commits
91d27d99
Commit
91d27d99
authored
Mar 09, 2025
by
Donald Haase
Browse files
Remove some extraneous dreamcast changes from utils.c
Also add stdlib to fix some warnings.
parent
98e0f9e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils.c
View file @
91d27d99
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment