Cleanup, mostly network threading madness. Statusbar is now created at hard reset, IF the configuration has changed. Other minor things.
This commit is contained in:
24
src/plat.h
24
src/plat.h
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Define the various platform support functions.
|
||||
*
|
||||
* Version: @(#)plat.h 1.0.15 2017/10/27
|
||||
* Version: @(#)plat.h 1.0.16 2017/10/28
|
||||
*
|
||||
* Authors: Miran Grca, <mgrca8@gmail.com>
|
||||
* Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
@@ -24,12 +24,16 @@
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef WIN32
|
||||
#ifndef _WIN32
|
||||
# define RENDER_FPS 70 /* default render speed */
|
||||
#endif
|
||||
|
||||
/* The Win32 API uses _wcsicmp. */
|
||||
#ifdef _WIN32
|
||||
# define wcscasecmp _wcsicmp
|
||||
#endif
|
||||
|
||||
#ifdef FREEBSD
|
||||
#if defined(UNIX) && defined(FREEBSD)
|
||||
/* FreeBSD has largefile by default. */
|
||||
# define fopen64 fopen
|
||||
# define fseeko64 fseeko
|
||||
@@ -38,9 +42,12 @@
|
||||
#endif
|
||||
|
||||
|
||||
/* A hack (GCC-specific) to allow us to ignore unused parameters. */
|
||||
/* A hack (GCC-specific?) to allow us to ignore unused parameters. */
|
||||
#define UNUSED(arg) __attribute__((unused))arg
|
||||
|
||||
/* Return the size (in wchar's) of a wchar_t array. */
|
||||
#define sizeof_w(x) (sizeof((x)) / sizeof(wchar_t))
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -80,15 +87,6 @@ extern void plat_setfullscreen(int on);
|
||||
extern void plat_resize(int max_x, int max_y);
|
||||
|
||||
|
||||
/* Return the size (in wchar's) of a wchar_t array. */
|
||||
#define sizeof_w(x) (sizeof((x)) / sizeof(wchar_t))
|
||||
|
||||
/* The Win32 API uses _wcsicmp. */
|
||||
#ifdef WIN32
|
||||
# define wcscasecmp _wcsicmp
|
||||
#endif
|
||||
|
||||
|
||||
/* Resource management. */
|
||||
extern wchar_t *plat_get_string(int id);
|
||||
extern wchar_t *plat_get_string_from_string(char *str);
|
||||
|
||||
Reference in New Issue
Block a user