From 5763594cdafc73b9163c0098e70bb3145e1cd4c9 Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Wed, 19 Apr 2023 11:28:23 -0700 Subject: [PATCH] Add missing #pragma once to JsErrorHandler.h (#36964) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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 --- .../react-native/ReactCommon/jserrorhandler/JsErrorHandler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native/ReactCommon/jserrorhandler/JsErrorHandler.h b/packages/react-native/ReactCommon/jserrorhandler/JsErrorHandler.h index 90383e17ca7..d0bc25c9088 100644 --- a/packages/react-native/ReactCommon/jserrorhandler/JsErrorHandler.h +++ b/packages/react-native/ReactCommon/jserrorhandler/JsErrorHandler.h @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +#pragma once + #include #include