2023-12-17 15:39:29 +01:00
|
|
|
|
2023-12-14 21:54:22 +01:00
|
|
|
/* platform_config.h */
|
2023-12-17 15:39:29 +01:00
|
|
|
|
2023-12-14 21:54:22 +01:00
|
|
|
|
|
|
|
#ifdef __linux__
|
|
|
|
#include <alloca.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
|
|
|
|
#include <stdlib.h> // alloca
|
|
|
|
// FreeBSD and OpenBSD use pthread_set_name_np, while other platforms,
|
|
|
|
// include NetBSD, use pthread_setname_np. NetBSD's version however requires
|
|
|
|
// a different format, we handle this directly in thread_posix.
|
|
|
|
#ifdef __NetBSD__
|
|
|
|
#define PTHREAD_NETBSD_SET_NAME
|
|
|
|
#else
|
|
|
|
#define PTHREAD_BSD_SET_NAME
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2023-12-16 22:49:53 +01:00
|
|
|
#define GLES2_INCLUDE_H "drivers/gl_context/glad/glad/glad.h"
|