check if bprintf is defined before declaring prototype (does this solve your issue twinaphex?)

This commit is contained in:
Barry Harris 2012-12-15 14:49:40 +00:00
parent 7e3b201329
commit 3af97147dc
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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();