From 6bedade593e2b34fae4f86e11579ca92d18d00f6 Mon Sep 17 00:00:00 2001 From: Greg King Date: Sat, 29 May 2021 08:37:38 -0400 Subject: [PATCH] Fixed the creativision function prototypes. Added const to a pointer parameter. --- include/creativision.h | 8 ++++---- libsrc/creativision/psg.s | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/creativision.h b/include/creativision.h index 40b9ee03a..6910ee0cf 100644 --- a/include/creativision.h +++ b/include/creativision.h @@ -70,9 +70,9 @@ #define COLOR_WHITE 15 /* Protos */ -void __fastcall__ psg_outb(unsigned char b); -void __fastcall__ psg_delay(unsigned char b); -void psg_silence(void); -void __fastcall__ bios_playsound(void *a, unsigned char b); +void __fastcall__ psg_outb (unsigned char b); +void __fastcall__ psg_delay (unsigned char b); +void psg_silence (void); +void __fastcall__ bios_playsound (const void *a, unsigned char b); #endif /* #ifndef _CVISION_H */ diff --git a/libsrc/creativision/psg.s b/libsrc/creativision/psg.s index a32e87f02..18f4ffe2e 100644 --- a/libsrc/creativision/psg.s +++ b/libsrc/creativision/psg.s @@ -1,7 +1,7 @@ -; void __fastcall__ psg_outb( unsigned char b ); -; void __fastcall__ psg_delayms( unsigned char c); -; void __fastcall__ bios_playsound( void *b, unsigned char c); -; void psg_silence( void ); +; void __fastcall__ psg_outb (unsigned char b); +; void __fastcall__ psg_delay (unsigned char c); +; void __fastcall__ bios_playsound (const void *b, unsigned char c); +; void psg_silence (void); .export _psg_outb, _psg_silence, _psg_delay .export _bios_playsound