summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/main.c2
-rw-r--r--include/othello.h2
-rw-r--r--src/initialize_board.c2
-rw-r--r--src/print_board.c2
-rw-r--r--src/valid_moves.c2
5 files changed, 10 insertions, 0 deletions
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 <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"