Avoid redefinition warnings for _GNU_SOURCE. See #19354
This commit is contained in:
@@ -252,12 +252,12 @@
|
|||||||
# endif
|
# endif
|
||||||
# endif /* SGI */
|
# endif /* SGI */
|
||||||
|
|
||||||
# if defined(__INNOTEK_LIBC__)
|
# if defined(__INNOTEK_LIBC__) && !defined(_GNU_SOURCE)
|
||||||
/* Ensure visibility of strnlen declaration */
|
/* Ensure visibility of strnlen declaration */
|
||||||
# define _GNU_SOURCE
|
# define _GNU_SOURCE
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if defined(__CYGWIN__)
|
# if defined(__CYGWIN__) && !defined(_GNU_SOURCE)
|
||||||
/* Ensure visibility of Dl_info and pthread_setconcurrency declarations */
|
/* Ensure visibility of Dl_info and pthread_setconcurrency declarations */
|
||||||
# define _GNU_SOURCE
|
# define _GNU_SOURCE
|
||||||
# endif
|
# endif
|
||||||
|
|||||||
Reference in New Issue
Block a user