From: <oh...@ma...> - 2009-04-27 07:29:36
|
Author: oharboe Date: 2009-04-27 07:29:30 +0200 (Mon, 27 Apr 2009) New Revision: 1532 Modified: trunk/src/helper/jim.c trunk/src/target/oocd_trace.c Log: Zach Welch <zw...@su...> wrap _GNU_SOURCE defines Modified: trunk/src/helper/jim.c =================================================================== --- trunk/src/helper/jim.c 2009-04-26 20:05:08 UTC (rev 1531) +++ trunk/src/helper/jim.c 2009-04-27 05:29:30 UTC (rev 1532) @@ -49,7 +49,9 @@ #define JIM_DYNLIB /* Dynamic library support for UNIX and WIN32 */ #endif /* JIM_ANSIC */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE /* for vasprintf() */ +#endif #include <stdio.h> #include <stdlib.h> #include <string.h> Modified: trunk/src/target/oocd_trace.c =================================================================== --- trunk/src/target/oocd_trace.c 2009-04-26 20:05:08 UTC (rev 1531) +++ trunk/src/target/oocd_trace.c 2009-04-27 05:29:30 UTC (rev 1532) @@ -21,7 +21,9 @@ #include "config.h" #endif +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include <string.h> #include <errno.h> |