From c237203e1ad46a7b8a6d377b42454431ac3da2a2 Mon Sep 17 00:00:00 2001 From: ZakatTeamI2P Date: Tue, 31 Mar 2026 14:33:53 +0400 Subject: [PATCH] aedfgsdg --- binding-mri/binding-util.h | 4 +--- binding-mri/filesystem-binding.cpp | 4 ++-- binding-mri/niko-binding.cpp | 12 ++++++------ 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/binding-mri/binding-util.h b/binding-mri/binding-util.h index 681bf61..baa50e5 100644 --- a/binding-mri/binding-util.h +++ b/binding-mri/binding-util.h @@ -79,9 +79,7 @@ raiseRbExc(const Exception &exc); #endif #define DEF_TYPE_CUSTOMNAME_AND_FREE(Klass, Name, Free) \ - rb_data_type_t Klass##Type = { \ - Name, { 0, Free, 0, { 0, 0 } }, 0, 0, DEF_TYPE_FLAGS \ - } + rb_data_type_t Klass##Type = { Name, { 0, Free, 0, { 0, 0 } }, 0, 0, (void*)DEF_TYPE_FLAGS } #define DEF_TYPE_CUSTOMFREE(Klass, Free) \ DEF_TYPE_CUSTOMNAME_AND_FREE(Klass, #Klass, Free) diff --git a/binding-mri/filesystem-binding.cpp b/binding-mri/filesystem-binding.cpp index 6bb43c5..e858f0d 100644 --- a/binding-mri/filesystem-binding.cpp +++ b/binding-mri/filesystem-binding.cpp @@ -40,11 +40,11 @@ DEF_TYPE_CUSTOMFREE(FileInt, fileIntFreeInstance); static VALUE fileIntForPath(const char *path, bool rubyExc) { - SDL_IOStream *ops; + SDL_IOStream* ops; try { - shState->fileSystem().openReadRaw(*ops, path); + shState->fileSystem().openReadRaw(ops*, path); } catch (const Exception &e) { diff --git a/binding-mri/niko-binding.cpp b/binding-mri/niko-binding.cpp index d10cd00..cff3953 100644 --- a/binding-mri/niko-binding.cpp +++ b/binding-mri/niko-binding.cpp @@ -99,9 +99,9 @@ RB_METHOD(nikoPrepare) RB_UNUSED_PARAM; // Prime native window info - syswm::SDL_SysWMinfo syswindow; - SDL_VERSION(&syswindow.version); - SDL_GetWindowWMInfo(shState->rtData().window, &syswindow); + //syswm::SDL_SysWMinfo syswindow; + //SDL_VERSION(&syswindow.version); + //SDL_GetWindowWMInfo(shState->rtData().window, &syswindow); #ifdef LINUX char path[PATH_MAX]; @@ -133,9 +133,9 @@ RB_METHOD(nikoStart) RB_UNUSED_PARAM; // Prime native window info - syswm::SDL_SysWMinfo syswindow; - SDL_VERSION(&syswindow.version); - SDL_GetWindowWMInfo(shState->rtData().window, &syswindow); + //syswm::SDL_SysWMinfo syswindow; + //SDL_VERSION(&syswindow.version); + //SDL_GetWindowWMInfo(shState->rtData().window, &syswindow); #ifdef _WIN32 // Calculate where to stick the window