aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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);
}