commit: 2af8bafaa7de49fe65e472d2d0549f9654fed989
parent 7b7fa6456446485c098aa35614fbd4fcadc3658b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 20 Oct 2023 06:49:14 +0200
Define C & POSIX standards
Diffstat:
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -12,11 +12,11 @@ PNG_LIBS = `${PKG_CONFIG} --libs libpng`
all: xcursorgen
Xcursor/file.o: Xcursor/file.c
- ${CC} ${CFLAGS} -c -o $@ Xcursor/file.c
+ ${CC} -std=c99 ${CFLAGS} -c -o $@ Xcursor/file.c
XCURSORGEN_SRC = xcursorgen.c Xcursor/file.o
xcursorgen: ${XCURSORGEN_SRC} | *.h Xcursor/*.h
- ${CC} ${CFLAGS} ${PNG_CFLAGS} -o $@ ${XCURSORGEN_SRC} ${LDFLAGS} ${PNG_LIBS}
+ ${CC} -std=c99 ${CFLAGS} ${PNG_CFLAGS} -o $@ ${XCURSORGEN_SRC} ${LDFLAGS} ${PNG_LIBS}
SOURCES = *.c *.h Xcursor/*.h Xcursor/*.c
.PHONY: format
diff --git a/Xcursor/file.c b/Xcursor/file.c
@@ -22,6 +22,8 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
+#define _POSIX_C_SOURCE 200809L
+
#include "Xcursor.h"
#include <stdlib.h>
diff --git a/xcursorgen.c b/xcursorgen.c
@@ -24,6 +24,8 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
+#define _POSIX_C_SOURCE 200809L
+
#include "Xcursor/Xcursor.h"
#include "config.h"