File picker works on windows

This commit is contained in:
Simon Gellis 2024-10-29 23:37:23 -04:00
parent 18f997632b
commit 121adcb08c
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ifeq ($(msys_version), 0)
PKGFLAGS=$(shell pkg-config sdl2 --cflags --libs) PKGFLAGS=$(shell pkg-config sdl2 --cflags --libs)
BINLINKFLAGS=-z noexecstack BINLINKFLAGS=-z noexecstack
else else
PKGFLAGS=$(shell pkg-config sdl2 --cflags --libs) -mwindows -mconsole PKGFLAGS=$(shell pkg-config sdl2 --cflags --libs) -mwindows -mconsole -lcomdlg32 -lole32
BINLINKFLAGS= BINLINKFLAGS=
endif endif
@ -41,7 +41,7 @@ output/tinyfiledialogs.o: external/tinyfiledialogs.c
@mkdir -p output @mkdir -p output
@$(CC) -c -o $@ $< -I . \ @$(CC) -c -o $@ $< -I . \
-I external \ -I external \
-O3 -flto=auto -fno-strict-aliasing \ -O3 -flto=auto -fno-strict-aliasing -Wno-cast-function-type \
-Werror -std=c90 -Wall -Wextra -Wpedantic -Werror -std=c90 -Wall -Wextra -Wpedantic
output/%.o: assets/%.bin output/%.o: assets/%.bin