mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
0f92639a96
Summary: public I was using `dlsym` as a more elegant way of checking if the function was defined to prevent crashes if running on an unsupported architecture, but Xcode might strip the symbol, even with `.no_dead_strip`, if there's no references to the compilation unit at all. Replace it with an ugly `#if` that checks if it's any of the supported targets and extern the function prototype. Reviewed By: jspahrsummers Differential Revision: D2581143 fb-gh-sync-id: b004ed351de97f96c04b4a6c914ce55cfcbbbcbb
14 lines
429 B
C
14 lines
429 B
C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#define _CONCAT(A, B) A##B
|
|
#define CONCAT(A, B) _CONCAT(A, B)
|
|
|
|
#define SYMBOL_NAME(S) CONCAT(__USER_LABEL_PREFIX__, S)
|