fixed macos build too

This commit is contained in:
Luxferre
2026-08-21 19:26:31 +03:00
parent 81c53d5dc8
commit 82cfb7ac11
2 changed files with 12 additions and 12 deletions
-3
View File
@@ -9,9 +9,6 @@ CFLAGS ?= -O2 -s -std=c11 -Wall -Wextra -march=native
CPPFLAGS += -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE
LDFLAGS ?=
LDLIBS += -lpthread
# The matcher uses POSIX memmem(), which glibc accelerates with SIMD on
# whatever CPU you run on. -mavx2 is harmless but unnecessary; drop it for
# maximum portability (e.g. make MARCH="").
MARCH ?=
BINARY := gg
+3
View File
@@ -6,6 +6,9 @@
* Created by Luxferre in 2026, released into the public domain
*
*/
#if defined(__APPLE__) && !defined(_DARWIN_C_SOURCE)
#define _DARWIN_C_SOURCE
#endif
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#endif