mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
Minor cleanup in platform-headers in general.h.
This commit is contained in:
parent
844ea8d1fc
commit
770ac5a15a
45
general.h
45
general.h
@ -32,36 +32,57 @@
|
|||||||
#include "audio/ext/rarch_dsp.h"
|
#include "audio/ext/rarch_dsp.h"
|
||||||
#include "compat/strl.h"
|
#include "compat/strl.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Platform-specific headers
|
||||||
|
// PS3
|
||||||
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
||||||
#include <sys/timer.h>
|
#include <sys/timer.h>
|
||||||
#include "ps3/ps3_input.h"
|
#include "ps3/ps3_input.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// libxenon
|
||||||
#ifdef XENON
|
#ifdef XENON
|
||||||
#include <time/time.h>
|
#include <time/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Android
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
#include "android/native/jni/android_general.h"
|
#include "android/native/jni/android_general.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Windows
|
||||||
#if defined(_WIN32) && !defined(_XBOX)
|
#if defined(_WIN32) && !defined(_XBOX)
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#elif defined(_XBOX)
|
|
||||||
#include <xtl.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(_WIN32)
|
|
||||||
#include "msvc/msvc_compat.h"
|
#include "msvc/msvc_compat.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PATH_MAX
|
// XBox
|
||||||
#define PATH_MAX 4096
|
#if defined(_XBOX)
|
||||||
|
#include <xtl.h>
|
||||||
|
#include "msvc/msvc_compat.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
// Wii
|
||||||
#include "config.h"
|
#if defined(GEKKO)
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// PSP
|
||||||
|
#if defined(PSP)
|
||||||
|
#include <pspthreadman.h>
|
||||||
|
#endif
|
||||||
|
//////////////
|
||||||
|
|
||||||
|
// Some platforms do not set this value.
|
||||||
|
// Just assume a value. It's usually 4KiB.
|
||||||
|
// Platforms with a known value (like Win32)
|
||||||
|
// set this value explicitly in platform specific headers.
|
||||||
|
#ifndef PATH_MAX
|
||||||
|
#define PATH_MAX 4096
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_NETPLAY
|
#ifdef HAVE_NETPLAY
|
||||||
@ -690,12 +711,6 @@ static inline float db_to_gain(float db)
|
|||||||
return powf(10.0f, db / 20.0f);
|
return powf(10.0f, db / 20.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(GEKKO)
|
|
||||||
#include <unistd.h>
|
|
||||||
#elif defined(PSP)
|
|
||||||
#include <pspthreadman.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static inline void rarch_sleep(unsigned msec)
|
static inline void rarch_sleep(unsigned msec)
|
||||||
{
|
{
|
||||||
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user