From 4bc7522121132f423e5aaf997c95b3bf5f01e266 Mon Sep 17 00:00:00 2001 From: Daniel Monteiro <2441483+TheFakeMontyOnTheRun@users.noreply.github.com> Date: Wed, 5 Oct 2022 22:22:05 +0100 Subject: [PATCH 1/2] fix: implicit declaration error by adding function prototype When compiled with a C99 compiler the implicit declaration would cause further errors. By proactively declaring it, we ensure the prototype matches with its uses. --- cpctelera/tools/2cdt/src/tzxfile.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cpctelera/tools/2cdt/src/tzxfile.h b/cpctelera/tools/2cdt/src/tzxfile.h index de05a9aae..880ca0ac0 100644 --- a/cpctelera/tools/2cdt/src/tzxfile.h +++ b/cpctelera/tools/2cdt/src/tzxfile.h @@ -75,5 +75,6 @@ int TZX_GetBlockHeaderSize(unsigned char ID); BOOL TZX_BlockHasData(unsigned char ID); TZX_BLOCK *TZX_CreateBlock(unsigned char ID); void TZX_SetupPauseBlock(TZX_BLOCK *pBlock,unsigned long PauseInMilliseconds); +void TZX_AppendFile(TZX_FILE *pTZXFile, unsigned char *pFilename); #endif From e9d40b39dc51f9527cdf3ad2fa8b58af2ed38207 Mon Sep 17 00:00:00 2001 From: Daniel Monteiro <2441483+TheFakeMontyOnTheRun@users.noreply.github.com> Date: Wed, 5 Oct 2022 22:23:02 +0100 Subject: [PATCH 2/2] fix: missing header for toupper When building under MacOS, toupper would go undeclared. --- cpctelera/tools/2cdt/src/2cdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpctelera/tools/2cdt/src/2cdt.c b/cpctelera/tools/2cdt/src/2cdt.c index 8cc34d4a4..dac693edc 100644 --- a/cpctelera/tools/2cdt/src/2cdt.c +++ b/cpctelera/tools/2cdt/src/2cdt.c @@ -20,6 +20,7 @@ /* The following program is designed to create a .tzx/.cdt from a tape-file stored on the PC */ +#include #include #include #include