macosx not in zig 0.7 build
extern fn GetTime() uses f64
This commit is contained in:
parent
9da413709c
commit
3d19112b2a
2 changed files with 2 additions and 2 deletions
2
lib.zig
2
lib.zig
|
|
@ -29,7 +29,7 @@ pub fn Pkg(pkgdir: comptime []const u8) type {
|
|||
exe.addIncludeDir(pkgdir ++ "/raylib/src/external/glfw/deps/mingw");
|
||||
exe.addCSourceFile(pkgdir ++ "/raylib/src/rglfw.c", raylibFlags);
|
||||
},
|
||||
.macosx => {
|
||||
.macos => {
|
||||
std.debug.warn("Compiling raylib is unsupported on macOS. Please add '-Dsystem-raylib=true' to your build command to use your system raylib.\n", .{});
|
||||
std.os.exit(1);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ pub extern fn GetScreenToWorld2D(position: Vector2, camera: Camera2D) Vector2;
|
|||
pub extern fn SetTargetFPS(fps: c_int) void;
|
||||
pub extern fn GetFPS() c_int;
|
||||
pub extern fn GetFrameTime() f32;
|
||||
pub extern fn GetTime() double;
|
||||
pub extern fn GetTime() f64;
|
||||
pub extern fn ColorToInt(color: Color) c_int;
|
||||
pub extern fn ColorNormalize(color: Color) Vector4;
|
||||
pub extern fn ColorFromNormalized(normalized: Vector4) Color;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue