Silence OpenGL depreciation warnings on macOS

This commit is contained in:
Not-Nik 2020-05-27 13:59:43 +10:00
parent 92f9aca743
commit 0fc7e68754
No known key found for this signature in database
GPG Key ID: 08BB71E672DB3BFD

View File

@ -10,6 +10,7 @@ pub fn Pkg(pkgdir: comptime []const u8) type {
"-std=c99", "-std=c99",
"-DPLATFORM_DESKTOP", "-DPLATFORM_DESKTOP",
"-D_POSIX_C_SOURCE", "-D_POSIX_C_SOURCE",
"-DGL_SILENCE_DEPRECATION"
}; };
const target_os = exe.target.toTarget().os.tag; const target_os = exe.target.toTarget().os.tag;
switch (target_os) { switch (target_os) {