From 58352d6dc969fa90c5fa1220f38ffe577157547f Mon Sep 17 00:00:00 2001 From: pstef <3462925+pstef@users.noreply.github.com> Date: Sat, 14 Dec 2024 13:25:49 +0100 Subject: [PATCH] Silence "implicit function declaration" warnings/errors Move Debug versions below the function that it calls so that the function is known. Make the 4 shared functions extern. --- yabause/src/core/sh2/sh2_kronos/src/sh2int.c | 12 ++++++------ .../opengl/compute_shader/include/vdp1_compute.h | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/yabause/src/core/sh2/sh2_kronos/src/sh2int.c b/yabause/src/core/sh2/sh2_kronos/src/sh2int.c index b3c4a8ecb..e4c31b376 100644 --- a/yabause/src/core/sh2/sh2_kronos/src/sh2int.c +++ b/yabause/src/core/sh2/sh2_kronos/src/sh2int.c @@ -339,12 +339,6 @@ static void outOfInt(SH2_struct *context) { executeLastPC(context); } -int SH2KronosInterpreterDebugInit(void) -{ - int ret = SH2KronosInterpreterInit(); - SH2SetExecSet(1); - return ret; -} int SH2KronosInterpreterInit(void) { @@ -445,6 +439,12 @@ int SH2KronosInterpreterInit(void) return 0; } +int SH2KronosInterpreterDebugInit(void) +{ + int ret = SH2KronosInterpreterInit(); + SH2SetExecSet(1); + return ret; +} ////////////////////////////////////////////////////////////////////////////// void SH2KronosInterpreterDeInit(void) diff --git a/yabause/src/core/video/opengl/compute_shader/include/vdp1_compute.h b/yabause/src/core/video/opengl/compute_shader/include/vdp1_compute.h index 2624d314d..a950b1c51 100644 --- a/yabause/src/core/video/opengl/compute_shader/include/vdp1_compute.h +++ b/yabause/src/core/video/opengl/compute_shader/include/vdp1_compute.h @@ -77,6 +77,10 @@ extern void vdp1_compute_reset(void); extern void vdp1_update_banding(void); extern void vdp1_update_mesh(void); extern void vdp1_update_performance(void); +extern void startVdp1Render(void); +extern void startVdp1RenderUpscale(void); +extern void endVdp1Render(void); +extern void endVdp1RenderUpscale(void); #ifdef __cplusplus }