Skip to content

Commit 6eb1548

Browse files
committed
Merged revision(s) 24996 from branches/OpenMPT-1.30:
Merged revision(s) 24990 from trunk/OpenMPT: [Fix] LAME: Do not touch WinAPI CDECL macro. ........ ........ git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.28@24998 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent 7a4a8f9 commit 6eb1548

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

include/lame/OpenMPT.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
lame library version 3.100.
22
The following changes have been made:
33
* Obviously, unnecessary folders and files have been removed.
4+
* `include/lame.h` has been modified to not touch WinAPI macro `CDECL`
45
* Forced library name in lame.def has been removed.
56
* All modifications have been marked with /* OpenMPT */.
67
* For building, premake is used to generate Visual Studio project files.

include/lame/include/lame.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,15 @@ extern "C" {
3838
typedef void (*lame_report_function)(const char *format, va_list ap);
3939

4040
#if defined(WIN32) || defined(_WIN32)
41+
#include <windows.h> /* OpenMPT */
42+
#if 0 /* OpenMPT */
4143
#undef CDECL
4244
#define CDECL __cdecl
45+
#endif /* OpenMPT */
4346
#else
47+
#ifndef CDECL /* OpenMPT */
4448
#define CDECL
49+
#endif /* OpenMPT */
4550
#endif
4651

4752
#define DEPRECATED_OR_OBSOLETE_CODE_REMOVED 1

0 commit comments

Comments
 (0)