(fix of commits
ce1f87461,
97182297e,
d5dad58d3,
cd63cf1e8)
* include/gc_config_macros.h [!GC_THREADS] (GC_THREADS): Do not check
SN_TARGET_ORBIS and SN_TARGET_PSP2 macros.
* include/private/gcconfig.h [X86_64 && SN_TARGET_ORBIS]: Do not
include pthread.h (should be included from gc_locks.h).
* include/private/gcconfig.h [NN_PLATFORM_CTR || NINTENDO_SWITCH
|| SN_TARGET_ORBIS || SN_TARGET_PS3 || SN_TARGET_PSP2] (THREADS):
Define only if GC_THREADS is defined.
|| defined(GC_IRIX_THREADS) || defined(GC_LINUX_THREADS) \
|| defined(GC_NETBSD_THREADS) || defined(GC_OPENBSD_THREADS) \
|| defined(GC_OSF1_THREADS) || defined(GC_SOLARIS_THREADS) \
- || defined(GC_WIN32_THREADS) || defined(GC_RTEMS_PTHREADS) \
- || defined(SN_TARGET_ORBIS) || defined(SN_TARGET_PSP2)
+ || defined(GC_WIN32_THREADS) || defined(GC_RTEMS_PTHREADS)
# ifndef GC_THREADS
# define GC_THREADS
# endif
# ifdef SN_TARGET_ORBIS
# define DATASTART (ptr_t)ALIGNMENT
# define DATAEND (ptr_t)ALIGNMENT
- EXTERN_C_END
-# include <pthread.h>
- EXTERN_C_BEGIN
void *ps4_get_stack_bottom(void);
# define STACKBOTTOM ((ptr_t)ps4_get_stack_bottom())
# endif
#endif /* !CPPCHECK */
#if defined(PCR) || defined(GC_WIN32_THREADS) || defined(GC_PTHREADS) \
- || defined(NN_PLATFORM_CTR) || defined(NINTENDO_SWITCH) \
- || defined(SN_TARGET_ORBIS) || defined(SN_TARGET_PS3) \
- || defined(SN_TARGET_PSP2)
+ || ((defined(NN_PLATFORM_CTR) || defined(NINTENDO_SWITCH) \
+ || defined(SN_TARGET_ORBIS) || defined(SN_TARGET_PS3) \
+ || defined(SN_TARGET_PSP2)) && defined(GC_THREADS))
# define THREADS
#endif