mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-01 09:27:39 +00:00
cmake (CheckPTHREAD): remove _GNU_SOURCE define after bug #7026 fix
This commit is contained in:
parent
a486eeccf4
commit
0d8c22acd2
1 changed files with 0 additions and 3 deletions
|
@ -820,7 +820,6 @@ macro(CheckPTHREAD)
|
||||||
list(APPEND SDL_PC_CFLAGS ${PTHREAD_CFLAGS})
|
list(APPEND SDL_PC_CFLAGS ${PTHREAD_CFLAGS})
|
||||||
|
|
||||||
check_c_source_compiles("
|
check_c_source_compiles("
|
||||||
#define _GNU_SOURCE 1
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
pthread_mutexattr_t attr;
|
pthread_mutexattr_t attr;
|
||||||
|
@ -831,7 +830,6 @@ macro(CheckPTHREAD)
|
||||||
set(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1)
|
set(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1)
|
||||||
else()
|
else()
|
||||||
check_c_source_compiles("
|
check_c_source_compiles("
|
||||||
#define _GNU_SOURCE 1
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
pthread_mutexattr_t attr;
|
pthread_mutexattr_t attr;
|
||||||
|
@ -862,7 +860,6 @@ macro(CheckPTHREAD)
|
||||||
check_include_file(pthread_np.h HAVE_PTHREAD_NP_H)
|
check_include_file(pthread_np.h HAVE_PTHREAD_NP_H)
|
||||||
if (HAVE_PTHREAD_H)
|
if (HAVE_PTHREAD_H)
|
||||||
check_c_source_compiles("
|
check_c_source_compiles("
|
||||||
#define _GNU_SOURCE 1
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
pthread_setname_np(pthread_self(), \"\");
|
pthread_setname_np(pthread_self(), \"\");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue