blob: 9ef6c8f3b79eead528082fe93bd3d413b6798184 [file] [log] [blame]
kma@webrtc.org55cd78c2012-11-17 00:22:46 +00001/*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_ASM_DEFINES_H_
12#define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_ASM_DEFINES_H_
13
14// Define the macros used in ARM assembly code, so that for Mac or iOS builds
15// we add leading underscores for the function names.
16#ifdef __APPLE__
17.macro GLOBAL_FUNCTION name
18.global _\name
19.endm
20.macro DEFINE_FUNCTION name
21_\name:
22.endm
23#else
24.macro GLOBAL_FUNCTION name
25.global \name
26.endm
27.macro DEFINE_FUNCTION name
28\name:
29.endm
30#endif
31
32#endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_COMPILE_ASSERT_H_