Skip to content

Commit

Permalink
Another win64 Qt6 build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thor2016 committed Feb 24, 2024
1 parent ce0dd16 commit 9d08ff4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,11 @@ bool FCEU_IsValidUI(EFCEUI ui);

#ifdef __cplusplus
extern "C"
{
#endif
FILE *FCEUI_UTF8fopen_C(const char *n, const char *m);
#ifdef __cplusplus
} // extern C
#endif
FILE *FCEUI_UTF8fopen_C(const char *n, const char *m);

#endif //__DRIVER_H_
2 changes: 1 addition & 1 deletion src/drivers/Qt/HelpPages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void consoleWin_t::OpenHelpWindow(QString subpage)
helpWin = HtmlHelpA( HWND(winId()), helpFileName.toLocal8Bit().constData(), HH_DISPLAY_TOPIC, (DWORD)NULL);
if ( helpWin == NULL )
{
printf("Error: Failed to open help file '%s'\n", helpFileName.c_str() );
printf("Error: Failed to open help file '%s'\n", helpFileName.toLocal8Bit().constData() );
}
#else
if ( helpWin > 0 )
Expand Down
10 changes: 7 additions & 3 deletions src/fceu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,13 @@ int AutosaveFrequency = 256; // Number of frames between autosaves
int EnableAutosave = 0;

///a wrapper for unzip.c
extern "C" FILE *FCEUI_UTF8fopen_C(const char *n, const char *m) {
return ::FCEUD_UTF8fopen(n, m);
}
extern "C"
{
FILE *FCEUI_UTF8fopen_C(const char *n, const char *m)
{
return ::FCEUD_UTF8fopen(n, m);
}
} // extern C

static DECLFW(BNull) {
}
Expand Down

0 comments on commit 9d08ff4

Please sign in to comment.