From 3af97147dc9ed16abd30ed894b2771e2420539ce Mon Sep 17 00:00:00 2001 From: Barry Harris <44396066+barry65536@users.noreply.github.com> Date: Sat, 15 Dec 2012 14:49:40 +0000 Subject: [PATCH] check if bprintf is defined before declaring prototype (does this solve your issue twinaphex?) --- src/burn/burn.cpp | 2 ++ src/burn/burn.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/burn/burn.cpp b/src/burn/burn.cpp index fde3238d9..e17a7d9b3 100644 --- a/src/burn/burn.cpp +++ b/src/burn/burn.cpp @@ -8,7 +8,9 @@ // filler function, used if the application is not printing debug messages static INT32 __cdecl BurnbprintfFiller(INT32, TCHAR* , ...) { return 0; } // pointer to burner printing function +#ifndef bprintf INT32 (__cdecl *bprintf)(INT32 nStatus, TCHAR* szFormat, ...) = BurnbprintfFiller; +#endif INT32 nBurnVer = BURN_VERSION; // Version number of the library diff --git a/src/burn/burn.h b/src/burn/burn.h index 76eb652c2..e51d23372 100644 --- a/src/burn/burn.h +++ b/src/burn/burn.h @@ -209,7 +209,9 @@ extern UINT32 *pBurnDrvPalette; #define PRINT_IMPORTANT (2) #define PRINT_ERROR (3) +#ifndef bprintf extern INT32 (__cdecl *bprintf) (INT32 nStatus, TCHAR* szFormat, ...); +#endif INT32 BurnLibInit(); INT32 BurnLibExit();