aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-06-02 10:47:37 +1000
committerNeil <nyamatongwe@gmail.com>2020-06-02 10:47:37 +1000
commitb6f6f49a675046d566e0ce700098a249b3455fb8 (patch)
treed738c09afd7fab2bf352d0fc04d17888ea0f8dc8
parentfbf28e17ec27bd65cd940559a6cd5d4589a8f9f8 (diff)
downloadscintilla-mirror-b6f6f49a675046d566e0ce700098a249b3455fb8.tar.gz
Specify the calling convention so that both dynamic and static linking work on
32-bit and 64-bit Win32.
-rw-r--r--lexilla/src/Lexilla.h8
1 files changed, 7 insertions, 1 deletions
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 <neilh@scintilla.org>
// 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);
}