Skip to content

Commit

Permalink
remove gnu_source redefinition warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmoxham committed Jun 2, 2009
1 parent 0860e1f commit 42b02d4
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mpf/out_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* for DECIMAL_POINT in langinfo.h */
#endif

#include "config.h"

Expand Down
2 changes: 2 additions & 0 deletions mpf/set_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ MA 02110-1301, USA. */
3. Use mpn_tdiv_qr instead of mpn_lshift+mpn_divrem.
*/

#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* for DECIMAL_POINT in langinfo.h */
#endif

#include "config.h"

Expand Down
2 changes: 2 additions & 0 deletions printf/doprnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* for DECIMAL_POINT in glibc langinfo.h */
#endif

#include "config.h"

Expand Down
2 changes: 2 additions & 0 deletions printf/obprntffuns.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ MA 02110-1301, USA. */

#if HAVE_OBSTACK_VPRINTF

#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* ask glibc <stdio.h> for obstack_vprintf */
#endif

#if HAVE_STDARG
#include <stdarg.h>
Expand Down
3 changes: 2 additions & 1 deletion printf/repl-vsnprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ MA 02110-1301, USA. */

#if ! HAVE_VSNPRINTF /* only need this file if we don't have vsnprintf */


#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* for strnlen prototype */
#endif

#if HAVE_STDARG
#include <stdarg.h>
Expand Down
2 changes: 2 additions & 0 deletions scanf/doscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* for DECIMAL_POINT in langinfo.h */
#endif

#include "config.h"

Expand Down
2 changes: 2 additions & 0 deletions tests/misc/t-locale.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* for DECIMAL_POINT in glibc langinfo.h */
#endif

#include "config.h"

Expand Down

0 comments on commit 42b02d4

Please sign in to comment.