diff options
author | Robby Zambito <contact@robbyzambito.me> | 2021-11-21 15:58:10 -0500 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2021-11-21 15:58:10 -0500 |
commit | c0416078cb2ef3b670445b43bdfebeced28de108 (patch) | |
tree | af3628cd40e13be5352ccd584daa8ef1b5fea425 | |
parent | 2a2894dadd091c64cdc26b17e779b7daca91d17d (diff) |
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.
-rw-r--r-- | cmd/main.c | 2 | ||||
-rw-r--r-- | include/othello.h | 2 | ||||
-rw-r--r-- | src/initialize_board.c | 2 | ||||
-rw-r--r-- | src/print_board.c | 2 | ||||
-rw-r--r-- | src/valid_moves.c | 2 |
5 files changed, 10 insertions, 0 deletions
@@ -16,6 +16,8 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ +#define _GNU_SOURCE + #include <libguile.h> #include <stdbool.h> #include <stdio.h> 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 <https://www.gnu.org/licenses/>. */ +#define _GNU_SOURCE + #include <stdbool.h> 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 <https://www.gnu.org/licenses/>. */ +#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 <https://www.gnu.org/licenses/>. */ +#define _GNU_SOURCE + #include <stdio.h> #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 <https://www.gnu.org/licenses/>. */ +#define _GNU_SOURCE + #include <stdbool.h> #include "othello.h" |