Don't define _gnu_source if already defined.

When using the build method of including the MPS directly into
one's own sources, that build system may already define _GNU_SOURCE
causing a warning here about re-defining it.

Copied from Perforce
 Change: 182941
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Bruce Mitchener 2013-07-05 15:50:54 +07:00 committed by Richard Brooksby
parent 574a2eaaae
commit 9e2eef4fa0

View file

@ -356,7 +356,10 @@
#if defined(MPS_OS_LI)
#define _XOPEN_SOURCE 500
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#endif