From e163d1ff3be6b579ddaf4165f0249f2275786dd6 Mon Sep 17 00:00:00 2001 From: MonsterDruide1 <5958456@gmail.com> Date: Tue, 21 Jul 2026 01:31:01 +0200 Subject: [PATCH] gfx/detail: Declare `glslc`-functions as `extern "C"` --- src/NintendoSDK/gfx/detail/gfx_GlslcFunction.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NintendoSDK/gfx/detail/gfx_GlslcFunction.cpp b/src/NintendoSDK/gfx/detail/gfx_GlslcFunction.cpp index 45396db5..6524a281 100644 --- a/src/NintendoSDK/gfx/detail/gfx_GlslcFunction.cpp +++ b/src/NintendoSDK/gfx/detail/gfx_GlslcFunction.cpp @@ -1,5 +1,6 @@ #include +extern "C" { bool glslcCompile(GLSLCcompileObject*); const GLSLCoutput* const* glslcCompilePreSpecialized(GLSLCcompileObject*, const GLSLCspecializationBatch*); @@ -9,6 +10,7 @@ uint8_t glslcGetDefaultOptions(GLSLCcompileObject*); GLSLCversion glslcGetVersion(); void glslcInitialize(GLSLCallocateFunction, GLSLCfreeFunction, GLSLCreallocateFunction, void*); GLSLCoptions glslcSetAllocator(); +} namespace nn::gfx::detail { typedef bool (*GlslcCompilePreSpecializedType)(GLSLCcompileObject*); @@ -54,4 +56,4 @@ GlslcGetDefaultOptionsType GetGlslcGetDefaultOptionsFunction() { return glslcSetAllocator; } -} // namespace nn::gfx::detail \ No newline at end of file +} // namespace nn::gfx::detail