Skip to content

Commit 6fc83e8

Browse files
fix: include correct endian header for Mac Catalyst builds (#708)
Co-authored-by: tanay <tparekhji@ironsdn.com>
1 parent 989a4cb commit 6fc83e8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • packages/react-native-quick-crypto/deps/fastpbkdf2

packages/react-native-quick-crypto/deps/fastpbkdf2/fastpbkdf2.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
#include <assert.h>
1818
#include <string.h>
1919
#if defined(__GNUC__)
20-
#include <endian.h>
20+
#if TARGET_OS_MACCATALYST
21+
#include <machine/endian.h> // Mac Catalyst
22+
#else
23+
#include <endian.h> // iOS
24+
#endif
2125
#endif
2226

2327
#include <openssl/sha.h>

0 commit comments

Comments
 (0)