Skip to content

Commit

Permalink
Merged revision(s) 22705 from branches/OpenMPT-1.31/libopenmpt/xmp-op…
Browse files Browse the repository at this point in the history
…enmpt:

Merged revision(s) 22704 from trunk/OpenMPT:
[Fix] xmp-openmpt: Work-around incompatible XMPIN_GetInterface declaration with GCC in XMPlay SDK 2025-01-02.
........
........


git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.30@22706 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Jan 2, 2025
1 parent 43eb245 commit e8ab79a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libopenmpt/xmp-openmpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,14 @@ static const char * xmp_openmpt_string = "OpenMPT (" OPENMPT_API_VERSION_STRING

#define USE_XMPLAY_ISTREAM

// XMPLAY expects a WINAPI (which is __stdcall) function using an undecorated symbol name which conflicts with the provided declaration.
#if defined(__GNUC__)
#define XMPIN_GetInterface XMPIN_GetInterface_Dummy
#endif
#include "xmplay/xmpin.h"
#if defined(__GNUC__)
#undef XMPIN_GetInterface
#endif

// Shortcut block assigned to the OpenMPT plugin by un4seen.
enum {
Expand Down

0 comments on commit e8ab79a

Please sign in to comment.