Skip to content

Commit

Permalink
Add missing #pragma once to JsErrorHandler.h (facebook#36964)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#36964

Changelog: [Internal]

W/o #pragma once, .cpp files would include the same header file content multiple times leading to compile errors as

```
react-native-github/packages/react-native/ReactCommon/jserrorhandler/JsErrorHandler.h:14:6: note: unguarded header; consider using #ifdef guards or #pragma once
enum JSErrorHandlerKey : uint16_t {
     ^
```

Reviewed By: shwanton

Differential Revision: D45100413

fbshipit-source-id: 9a8a03624b9475506caf1e485dc8a06a7f14c1e5
  • Loading branch information
christophpurrer authored and facebook-github-bot committed Apr 19, 2023
1 parent 9789aa6 commit 5763594
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <jsi/jsi.h>
#include <react/renderer/mapbuffer/MapBuffer.h>

Expand Down

0 comments on commit 5763594

Please sign in to comment.