Skip to content

Commit 5c55c89

Browse files
committed
Update for SDL 3.2.18
1 parent 7443a14 commit 5c55c89

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

build.zig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
const std = @import("std");
55

6-
pub const version: std.SemanticVersion = .{ .major = 3, .minor = 2, .patch = 16 };
7-
const formatted_version = std.fmt.comptimePrint("SDL3-{}", .{version});
8-
pub const vendor_info = "https://github.com/castholm/SDL 0.2.4";
6+
pub const version: std.SemanticVersion = .{ .major = 3, .minor = 2, .patch = 18 };
7+
const formatted_version = std.fmt.comptimePrint("SDL3-{d}.{d}.{d}", .{ version.major, version.minor, version.patch }); // TODO: Change to {f} after 0.15
8+
pub const vendor_info = "https://github.com/castholm/SDL 0.2.5";
99
pub const revision = formatted_version ++ " (" ++ vendor_info ++ ")";
1010

1111
pub fn build(b: *std.Build) void {
@@ -594,9 +594,9 @@ pub fn build(b: *std.Build) void {
594594
}
595595

596596
sdl_mod.addCMacro("USING_GENERATED_CONFIG_H", "1");
597-
sdl_mod.addCMacro("SDL_BUILD_MAJOR_VERSION", std.fmt.comptimePrint("{}", .{version.major}));
598-
sdl_mod.addCMacro("SDL_BUILD_MINOR_VERSION", std.fmt.comptimePrint("{}", .{version.minor}));
599-
sdl_mod.addCMacro("SDL_BUILD_MICRO_VERSION", std.fmt.comptimePrint("{}", .{version.patch}));
597+
sdl_mod.addCMacro("SDL_BUILD_MAJOR_VERSION", std.fmt.comptimePrint("{d}", .{version.major}));
598+
sdl_mod.addCMacro("SDL_BUILD_MINOR_VERSION", std.fmt.comptimePrint("{d}", .{version.minor}));
599+
sdl_mod.addCMacro("SDL_BUILD_MICRO_VERSION", std.fmt.comptimePrint("{d}", .{version.patch}));
600600
switch (sdl_lib.linkage.?) {
601601
.static => {
602602
sdl_mod.addCMacro("SDL_STATIC_LIB", "1");

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
.{
55
.name = .sdl,
6-
.version = "0.2.4+3.2.16",
6+
.version = "0.2.5+3.2.18",
77
.fingerprint = 0xec638ccbf427e2ee,
88
.minimum_zig_version = "0.14.1",
99
.dependencies = .{

0 commit comments

Comments
 (0)