Only define _XOPEN_SOURCE and __EXTENSIONS__ when necessary

This commit is contained in:
Cameron Cawley 2022-03-18 17:25:41 +00:00 committed by Martijn van Beurden
parent ce18b591a0
commit 32d51aade6
1 changed files with 4 additions and 0 deletions

View File

@ -176,8 +176,10 @@
#ifndef _XOPEN_SOURCE
#cmakedefine DODEFINE_XOPEN_SOURCE 500
#ifdef DODEFINE_XOPEN_SOURCE
#define _XOPEN_SOURCE DODEFINE_XOPEN_SOURCE
#endif
#endif
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
@ -190,8 +192,10 @@
/* Enable general extensions on Solaris. */
#ifndef __EXTENSIONS__
#cmakedefine DODEFINE_EXTENSIONS
#ifdef DODEFINE_EXTENSIONS
#define __EXTENSIONS__ DODEFINE_EXTENSIONS
#endif
#endif
/* Target processor is big endian. */