6502

minimal 6502 emulator written in C
Index Commits Files Refs README LICENSE
commit d23b6b231f87d043d95d8f030a50b737ea79ff55
parent 72266d27ca1ed0accb626bc0d045407b02bf658e
Author: mjkloeckner <martinjkloeckner@gmail.com>
Date:   Sun, 30 Apr 2023 21:01:40 -0300

move -D_POSIX_C_SOURCE=199309L from main.c to Makefile

Diffstat:
MMakefile | 3+--
Mmain.c | 2--
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,6 +1,5 @@
 CC := gcc
-CLIBS :=
-CFLAGS := -Wall -Wshadow -pedantic -ansi -std=c99 -O3
+CFLAGS := -D_POSIX_C_SOURCE=199309L -Wall -Wshadow -pedantic -ansi -std=c99 -O3
 SRCS := $(wildcard *.c)
 OBJS := $(SRCS:.c=.o)
 
diff --git a/main.c b/main.c
@@ -1,5 +1,3 @@
-#define _POSIX_C_SOURCE 199309L
-
 #include "6502.h"
 #include "tui.h"