fixed macos build too
This commit is contained in:
@@ -9,9 +9,6 @@ CFLAGS ?= -O2 -s -std=c11 -Wall -Wextra -march=native
|
|||||||
CPPFLAGS += -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE
|
CPPFLAGS += -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE
|
||||||
LDFLAGS ?=
|
LDFLAGS ?=
|
||||||
LDLIBS += -lpthread
|
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 ?=
|
MARCH ?=
|
||||||
|
|
||||||
BINARY := gg
|
BINARY := gg
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
* Created by Luxferre in 2026, released into the public domain
|
* 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
|
#ifndef _POSIX_C_SOURCE
|
||||||
#define _POSIX_C_SOURCE 200809L
|
#define _POSIX_C_SOURCE 200809L
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user