From b6f6f49a675046d566e0ce700098a249b3455fb8 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 2 Jun 2020 10:47:37 +1000 Subject: Specify the calling convention so that both dynamic and static linking work on 32-bit and 64-bit Win32. --- lexilla/src/Lexilla.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lexilla/src') diff --git a/lexilla/src/Lexilla.h b/lexilla/src/Lexilla.h index e44567bed..92b6378c0 100644 --- a/lexilla/src/Lexilla.h +++ b/lexilla/src/Lexilla.h @@ -6,8 +6,14 @@ // Copyright 2019 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. +#if _WIN32 +#define LEXILLA_CALLING_CONVENTION __stdcall +#else +#define LEXILLA_CALLING_CONVENTION +#endif + extern "C" { -Scintilla::ILexer5 *CreateLexer(const char *name); +Scintilla::ILexer5 * LEXILLA_CALLING_CONVENTION CreateLexer(const char *name); } -- cgit v1.2.3