From af831b6bff83b6ea07ca53facccfc6fa9b46eb30 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 10 May 2017 16:26:11 -0400 Subject: [PATCH] Windows: Fix wrong calling convention with gcc compiler (issue 1209) --- include/internal/cef_export.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/internal/cef_export.h b/include/internal/cef_export.h index 2813253b6..3484293ae 100644 --- a/include/internal/cef_export.h +++ b/include/internal/cef_export.h @@ -43,13 +43,17 @@ #else #define CEF_EXPORT #endif -#define CEF_CALLBACK __stdcall #elif defined(COMPILER_GCC) #define CEF_EXPORT __attribute__ ((visibility("default"))) -#define CEF_CALLBACK #endif // COMPILER_GCC +#if defined(OS_WIN) +#define CEF_CALLBACK __stdcall +#else +#define CEF_CALLBACK +#endif + #endif // CEF_INCLUDE_INTERNAL_CEF_EXPORT_H_