Skip to content

Commit 1d0404c

Browse files
mganandrajfacebook-github-bot
authored andcommitted
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: #22561 Reviewed By: fkgozali Differential Revision: D13529762 Pulled By: RSNara fbshipit-source-id: c78abb26f47aba25d50305c5bc0b23b6568f1243
1 parent 5957c8b commit 1d0404c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ReactCommon/jsi/jsi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
#include <string>
1414
#include <vector>
1515

16+
#ifndef JSI_EXPORT
1617
#define JSI_EXPORT __attribute__((visibility("default")))
18+
#endif
1719

1820
class FBJSRuntime;
1921
namespace facebook {

0 commit comments

Comments
 (0)