From b544371d737b5373726013fcc8c9e92609d10047 Mon Sep 17 00:00:00 2001 From: Anandraj Govindan Date: Thu, 27 Dec 2018 07:21:10 -0800 Subject: [PATCH] Making JSI_EXPORT macro definition conditional (#22561) Summary: This change enables defining the macro at a more global and central location. And thereby allowing us to building this file using MSVC. Pull Request resolved: https://github.com/facebook/react-native/pull/22561 Reviewed By: fkgozali Differential Revision: D13529762 Pulled By: RSNara fbshipit-source-id: c78abb26f47aba25d50305c5bc0b23b6568f1243 --- ReactCommon/jsi/jsi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ReactCommon/jsi/jsi.h b/ReactCommon/jsi/jsi.h index b1b26ff6a3462d..808e0f57967c94 100644 --- a/ReactCommon/jsi/jsi.h +++ b/ReactCommon/jsi/jsi.h @@ -10,7 +10,9 @@ #include #include +#ifndef JSI_EXPORT #define JSI_EXPORT __attribute__((visibility("default"))) +#endif class FBJSRuntime; namespace facebook {