Skip to content

Commit d0a6c12

Browse files
committed
Compile GLFW Cocoa sources as Objective-C++
1 parent cd2755b commit d0a6c12

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkgs/c/compat.glfw.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ package = {
7979
},
8080
},
8181
macosx = {
82-
cflags = { "-D_GLFW_COCOA" },
82+
cflags = { "-D_GLFW_COCOA" },
83+
cxxflags = { "-D_GLFW_COCOA", "-x", "objective-c++" },
8384
sources = {
8485
"src/cocoa_time.c",
8586
"src/posix_thread.c",

0 commit comments

Comments
 (0)