Mercurial > hg > octave-kai > gnulib-hg
changeset 1184:3096c6233f86
(_GNU_SOURCE): Define only if not already defined.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Thu, 25 Dec 1997 17:44:08 +0000 |
parents | ebbcc79d5bef |
children | 401858a04383 |
files | lib/getline.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/getline.c +++ b/lib/getline.c @@ -1,6 +1,6 @@ /* getline.c -- Replacement for GNU C library function getline -Copyright (C) 1993, 1996 Free Software Foundation, Inc. +Copyright (C) 1993, 1996, 1997 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -24,7 +24,10 @@ /* The `getdelim' function is only declared if the following symbol is defined. */ -#define _GNU_SOURCE 1 +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + #include <stdio.h> #include <sys/types.h>