mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Don't use #import in C++ Code (#28825)
Summary: While #import is common in Objective C, it's a vendor specific extension in C++, only supported by GCC/Clang, and only when -pedantic is off. Its use causes build breaks with MSVC. Replace it with the standard #include. ## Changelog [Internal] [Fixed] - Don't use #import in C++ Code Pull Request resolved: https://github.com/facebook/react-native/pull/28825 Test Plan: We've ben running this change within react-native-windows for some time. Differential Revision: D21391233 Pulled By: shergin fbshipit-source-id: c0f94f314c46d6ac24067bbdcd5aaaeec9da283f
This commit is contained in:
1 parent
7f2515ece8
commit
30a89f30c6
2 files changed
+4
-4
No files matched your search
@@ -5,9 +5,9 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#import "SampleTurboCxxModule.h"
|
||||
#include "SampleTurboCxxModule.h"
|
||||
|
||||
#import <ReactCommon/TurboModuleUtils.h>
|
||||
#include <ReactCommon/TurboModuleUtils.h>
|
||||
|
||||
using namespace facebook;
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#import <memory>
|
||||
#include <memory>
|
||||
|
||||
#import "NativeSampleTurboCxxModuleSpecJSI.h"
|
||||
#include "NativeSampleTurboCxxModuleSpecJSI.h"
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
Reference in new issue
Block a user