commit 7b335f1788f26fe95ff79b092a62f38fe1b42d2b
parent 4ae2d93217cddfe7630d3f2f989cffc7028c8e98
Author: amrfti <andrew@kloet.net>
Date: Mon, 19 Jan 2026 12:43:20 -0500
move posix spec to Makefile
Diffstat:
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,5 +1,5 @@
CC = cc
-CFLAGS = -Wall -Wextra -pedantic -std=c99 -O3
+CFLAGS = -Wall -Wextra -pedantic -std=c99 -D_XOPEN_SOURCE=700 -O3
CURL_LIBS = -lcurl
SOURCES = vidir.c sb-cpu.c sb-date.c sb-memory.c sb-time.c sb-weather.c sb-battery.c
diff --git a/vidir.c b/vidir.c
@@ -3,8 +3,6 @@
* usage: ./vidir [--verbose] [dir|file|-]
*/
-#define _XOPEN_SOURCE 700
-
#include <ctype.h>
#include <dirent.h>
#include <errno.h>