Skip to content

Commit 36f2432

Browse files
committed
chore: simplify SandboxLog.h platform preprocessor guards
1 parent 8f15a6c commit 36f2432

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

packages/react-native-sandbox/cxx/SandboxLog.h

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
11
#pragma once
22

3-
#include <string>
4-
5-
#ifdef __APPLE__
6-
#ifdef __OBJC__
3+
#if defined(__APPLE__) && defined(__OBJC__)
74
#import <React/RCTLog.h>
85
#define SANDBOX_LOG_WARN(fmt, ...) RCTLogWarn(@fmt, ##__VA_ARGS__)
9-
#else
10-
// C++ context on Apple — use stderr as fallback
11-
#include <cstdio>
12-
#define SANDBOX_LOG_WARN(fmt, ...) \
13-
fprintf(stderr, "[SandboxWarn] " fmt "\n", ##__VA_ARGS__)
14-
#endif
156
#elif defined(__ANDROID__)
167
#include <android/log.h>
178
#define SANDBOX_LOG_WARN(fmt, ...) \

0 commit comments

Comments
 (0)