Skip to content

Commit

Permalink
Use global declaration of _GNU_SOURCE via Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dl1jbe committed Oct 31, 2023
1 parent 92bcf4a commit 9f652a0
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 38 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AM_CPPFLAGS = @GLIB_CFLAGS@ -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" @PYTHON_INCLUDE@
AM_CFLAGS = @AM_CFLAGS@ @PTHREAD_CFLAGS@ @HAMLIB_CFLAGS@ @CURSES_CFLAGS@
AM_CFLAGS = @AM_CFLAGS@ @PTHREAD_CFLAGS@ @HAMLIB_CFLAGS@ @CURSES_CFLAGS@ -D_GNU_SOURCE

bin_PROGRAMS = tlf

Expand Down
7 changes: 0 additions & 7 deletions src/addcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@
* add call/band to dupe list
*
*--------------------------------------------------------------*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
#endif

#include <stdlib.h>
#include <string.h>
Expand Down
4 changes: 0 additions & 4 deletions src/cabrillo_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
*--------------------------------------------------------------*/


#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Expand Down
3 changes: 0 additions & 3 deletions src/get_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
* All functions operate on UTC dates/times.
---------------------------------------------------------------------------*/

#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
#endif
#include <time.h>
#include <string.h>

Expand Down
4 changes: 0 additions & 4 deletions src/log_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
*
---------------------------------------------------------------------------*/

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#include <ctype.h>
#include <glib.h>
#include <stdlib.h>
Expand Down
3 changes: 0 additions & 3 deletions src/readcabrillo.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
#endif
#include <stdio.h>
#include <string.h>
#include <unistd.h>
Expand Down
3 changes: 0 additions & 3 deletions src/readcalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
*
*--------------------------------------------------------------*/

#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
4 changes: 0 additions & 4 deletions src/rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef _GNU_SOURCE
#define _GNU_SOURCE // For asprintf()
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down
5 changes: 0 additions & 5 deletions src/searchlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
*
*--------------------------------------------------------------*/

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif


#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
Expand Down
4 changes: 0 additions & 4 deletions src/writecabrillo.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
*--------------------------------------------------------------*/


#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down

0 comments on commit 9f652a0

Please sign in to comment.