blob: 4ad10822f6e396aa9eff4e0d7e2cacefb66ff728 [file] [log] [blame]
Primiano Tucci38faa6f2018-04-01 20:12:08 +02001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef BUILDTOOLS_LIBBACKTRACE_CONFIG_CONFIG_H_
18#define BUILDTOOLS_LIBBACKTRACE_CONFIG_CONFIG_H_
19
Primiano Tucci543ae3a2018-04-03 20:37:27 +020020#if defined(__i386__) || defined(__ARMEL__)
21#define BACKTRACE_ELF_SIZE 32
22#else
Primiano Tucci38faa6f2018-04-01 20:12:08 +020023#define BACKTRACE_ELF_SIZE 64
Primiano Tucci543ae3a2018-04-03 20:37:27 +020024#endif
25
Primiano Tucci38faa6f2018-04-01 20:12:08 +020026#define BACKTRACE_XCOFF_SIZE unused
27#define HAVE_ATOMIC_FUNCTIONS 1
28#define HAVE_CLOCK_GETTIME 1
29#define HAVE_DECL_STRNLEN 1
30#define HAVE_DLFCN_H 1
31#define HAVE_FCNTL 1
Primiano Tucci38faa6f2018-04-01 20:12:08 +020032#define HAVE_INTTYPES_H 1
33#define HAVE_LSTAT 1
34#define HAVE_MEMORY_H 1
35#define HAVE_READLINK 1
36#define HAVE_STDINT_H 1
37#define HAVE_STDLIB_H 1
38#define HAVE_STRINGS_H 1
39#define HAVE_STRING_H 1
40#define HAVE_SYNC_FUNCTIONS 1
41#define HAVE_SYS_MMAN_H 1
42#define HAVE_SYS_STAT_H 1
43#define HAVE_SYS_TYPES_H 1
44#define HAVE_UNISTD_H 1
45#define HAVE_LINK_H 1
46#define STDC_HEADERS 1
Primiano Tucci543ae3a2018-04-03 20:37:27 +020047#define HAVE_DL_ITERATE_PHDR 1
Primiano Tucci38faa6f2018-04-01 20:12:08 +020048
49#ifndef _GNU_SOURCE
50#define _GNU_SOURCE 1
51#endif
52
53#endif // BUILDTOOLS_LIBBACKTRACE_CONFIG_CONFIG_H_