config.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  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. #ifndef BUILDTOOLS_LIBBACKTRACE_CONFIG_CONFIG_H_
  17. #define BUILDTOOLS_LIBBACKTRACE_CONFIG_CONFIG_H_
  18. #if defined(__i386__) || defined(__ARMEL__)
  19. #define BACKTRACE_ELF_SIZE 32
  20. #else
  21. #define BACKTRACE_ELF_SIZE 64
  22. #endif
  23. #define BACKTRACE_XCOFF_SIZE unused
  24. #define HAVE_ATOMIC_FUNCTIONS 1
  25. #define HAVE_CLOCK_GETTIME 1
  26. #define HAVE_DECL_STRNLEN 1
  27. #define HAVE_DLFCN_H 1
  28. #define HAVE_FCNTL 1
  29. #define HAVE_INTTYPES_H 1
  30. #define HAVE_LSTAT 1
  31. #define HAVE_MEMORY_H 1
  32. #define HAVE_READLINK 1
  33. #define HAVE_STDINT_H 1
  34. #define HAVE_STDLIB_H 1
  35. #define HAVE_STRINGS_H 1
  36. #define HAVE_STRING_H 1
  37. #define HAVE_SYNC_FUNCTIONS 1
  38. #define HAVE_SYS_MMAN_H 1
  39. #define HAVE_SYS_STAT_H 1
  40. #define HAVE_SYS_TYPES_H 1
  41. #define HAVE_UNISTD_H 1
  42. #define HAVE_LINK_H 1
  43. #define STDC_HEADERS 1
  44. #define HAVE_DL_ITERATE_PHDR 1
  45. #ifndef _GNU_SOURCE
  46. #define _GNU_SOURCE 1
  47. #endif
  48. #endif // BUILDTOOLS_LIBBACKTRACE_CONFIG_CONFIG_H_