diff --git a/Makefile b/Makefile index 521f796e..bb1256dd 100644 --- a/Makefile +++ b/Makefile @@ -72,12 +72,18 @@ else ifeq ($(CC),emcc) LIBS = -s WASM=1 -s ASYNCIFY -s GL_SUPPORT_EXPLICIT_SWAP_CONTROL=1 $(EXPORTED_JS) EXT = .js NO_GLES = 0 - NO_VULKAN = 1 detected_OS = web else LIBS += -std=c99 endif +VULKAN_CHECK := $(shell command -v vulkan) +ifneq ($(VULKAN_CHECK),) + NO_VULKAN = 0 +else + NO_VULKAN = 1 +endif + EXAMPLE_OUTPUTS = \ examples/basic/basic \ examples/buffer/buffer \ diff --git a/examples/metal/metal.m b/examples/metal/metal.m index dc94f2f5..01233d93 100644 --- a/examples/metal/metal.m +++ b/examples/metal/metal.m @@ -35,6 +35,7 @@ #define RGFW_NO_API #define RGFWDEF #import "RGFW.h" +#import #import #import