From 1a5ee113775cb753cb07a603024b7b8cc98f351a Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Tue, 28 Mar 2023 10:36:25 -0700 Subject: [PATCH] Restore old -std= flags Getting rid of them fixed GA Ubuntu, but broke GA MacOS. Let's try a different strategy. --- Makefile | 4 ++-- mmap.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8f94c77af..044e7d7fe 100644 --- a/Makefile +++ b/Makefile @@ -30,8 +30,8 @@ endif # Compile flags # -CFLAGS = -I. -O3 -DNDEBUG -fPIC -CXXFLAGS = -I. -I./examples -O3 -DNDEBUG -fPIC +CFLAGS = -I. -O3 -DNDEBUG -std=c11 -fPIC +CXXFLAGS = -I. -I./examples -O3 -DNDEBUG -std=c++11 -fPIC LDFLAGS = # OS specific diff --git a/mmap.h b/mmap.h index fd9a25963..8bdd662d3 100644 --- a/mmap.h +++ b/mmap.h @@ -1,5 +1,9 @@ #pragma once +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif + #include #include #include