mirror of
https://github.com/libretro/libretro-uae.git
synced 2026-11-07 11:16:05 -10:00
libretro: inline definitions still required on vita (#749)
This commit is contained in:
1 parent
7e0dfeed08
commit
b2c33a271b
3 files changed
+16
-4
No files matched your search
@@ -30,12 +30,26 @@
|
||||
#include <malloc.h>
|
||||
#define STACKSIZE (8 * 1024)
|
||||
|
||||
/*
|
||||
* Current devkitPPC already provides the pthread types - uncomment code
|
||||
* below if older toolchain:
|
||||
*
|
||||
* pthread_t
|
||||
* pthread_mutex_t
|
||||
* pthread_mutexattr_t
|
||||
* pthread_attr_t
|
||||
* pthread_cond_t
|
||||
* pthread_condattr_t
|
||||
*/
|
||||
|
||||
/*
|
||||
typedef OSThread* pthread_t;
|
||||
typedef OSMutex* pthread_mutex_t;
|
||||
typedef void* pthread_mutexattr_t;
|
||||
typedef int pthread_attr_t;
|
||||
typedef OSCondition* pthread_cond_t;
|
||||
typedef OSCondition* pthread_condattr_t;
|
||||
*/
|
||||
|
||||
static INLINE int pthread_create(pthread_t *thread,
|
||||
const pthread_attr_t *attr, void *(*start_routine)(void*), void *arg)
|
||||
|
||||
@@ -149,8 +149,7 @@ void uae_set_thread_priority (uae_thread_id *thread, int pri)
|
||||
|
||||
#ifdef WIIU
|
||||
|
||||
// this include is no longer needed on more recent toolchains, uncomment if you use an older one
|
||||
//#include <wiiu_pthread.h>
|
||||
#include <wiiu_pthread.h>
|
||||
#include <wiiu/os/semaphore.h>
|
||||
|
||||
#else /* WIIU */
|
||||
|
||||
@@ -36,8 +36,7 @@ STATIC_INLINE void uae_wait_thread (uae_thread_id tid)
|
||||
#else /* WIN32 */
|
||||
|
||||
#ifdef WIIU
|
||||
// this include is no longer needed on more recent toolchains, uncomment if you use an older one
|
||||
//#include <wiiu_pthread.h>
|
||||
#include <wiiu_pthread.h>
|
||||
#include <wiiu/os/semaphore.h>
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in new issue
Block a user