From c0416078cb2ef3b670445b43bdfebeced28de108 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Sun, 21 Nov 2021 15:58:10 -0500 Subject: Added _GNU_SOURCE to every file We are not aiming for high portability with this program. Anywhere that Guile is available, we should be able to access _GNU_SOURCE extensions. --- cmd/main.c | 2 ++ include/othello.h | 2 ++ src/initialize_board.c | 2 ++ src/print_board.c | 2 ++ src/valid_moves.c | 2 ++ 5 files changed, 10 insertions(+) diff --git a/cmd/main.c b/cmd/main.c index 51a4e62..abb433f 100644 --- a/cmd/main.c +++ b/cmd/main.c @@ -16,6 +16,8 @@ * along with this program. If not, see . */ +#define _GNU_SOURCE + #include #include #include diff --git a/include/othello.h b/include/othello.h index 84827ec..7591938 100644 --- a/include/othello.h +++ b/include/othello.h @@ -16,6 +16,8 @@ * along with this program. If not, see . */ +#define _GNU_SOURCE + #include enum player_color { diff --git a/src/initialize_board.c b/src/initialize_board.c index 8ebcbee..2e037c3 100644 --- a/src/initialize_board.c +++ b/src/initialize_board.c @@ -16,6 +16,8 @@ * along with this program. If not, see . */ +#define _GNU_SOURCE + #include "othello.h" void initialize_board(enum player_color board[8][8]) { diff --git a/src/print_board.c b/src/print_board.c index 7da7f1c..d9af6d1 100644 --- a/src/print_board.c +++ b/src/print_board.c @@ -16,6 +16,8 @@ * along with this program. If not, see . */ +#define _GNU_SOURCE + #include #include "othello.h" diff --git a/src/valid_moves.c b/src/valid_moves.c index dca1a0f..8c46c45 100644 --- a/src/valid_moves.c +++ b/src/valid_moves.c @@ -16,6 +16,8 @@ * along with this program. If not, see . */ +#define _GNU_SOURCE + #include #include "othello.h" -- cgit v1.2.3