[runtime] Add ICALL_DECL_EXPORT.
authorAlex Rønne Petersen <alpeters@microsoft.com>
Mon, 7 Aug 2017 20:27:10 +0000 (22:27 +0200)
committerAlex Rønne Petersen <alpeters@microsoft.com>
Mon, 7 Aug 2017 20:38:26 +0000 (22:38 +0200)
ICALL_EXPORT is only used on function definitions, not declarations.

mono/metadata/class-internals.h

index ef8127e14a4ab94e43f545d5eea84ef80f660039..3ff6e77cbb990f3d2b15b3252b2cb22628ebe4ac 100644 (file)
@@ -37,8 +37,10 @@ typedef struct _MonoMethodPInvoke MonoMethodPInvoke;
 
 #ifdef ENABLE_ICALL_EXPORT
 #pragma GCC diagnostic ignored "-Wmissing-prototypes"
+#define ICALL_DECL_EXPORT MONO_API
 #define ICALL_EXPORT MONO_API
 #else
+#define ICALL_DECL_EXPORT
 #define ICALL_EXPORT static
 #endif