1*4371c79dSSchrodinger ZHU Yifan //===-- Definition of macros from elf.h -----------------------------------===// 2*4371c79dSSchrodinger ZHU Yifan // 3*4371c79dSSchrodinger ZHU Yifan // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*4371c79dSSchrodinger ZHU Yifan // See https://llvm.org/LICENSE.txt for license information. 5*4371c79dSSchrodinger ZHU Yifan // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*4371c79dSSchrodinger ZHU Yifan // 7*4371c79dSSchrodinger ZHU Yifan //===----------------------------------------------------------------------===// 8*4371c79dSSchrodinger ZHU Yifan 9*4371c79dSSchrodinger ZHU Yifan #ifndef LLVM_LIBC_MACROS_ELF_MACROS_H 10*4371c79dSSchrodinger ZHU Yifan #define LLVM_LIBC_MACROS_ELF_MACROS_H 11*4371c79dSSchrodinger ZHU Yifan 12*4371c79dSSchrodinger ZHU Yifan #if __has_include(<linux/elf.h>) 13*4371c79dSSchrodinger ZHU Yifan #include <linux/elf.h> 14*4371c79dSSchrodinger ZHU Yifan #else 15*4371c79dSSchrodinger ZHU Yifan #error "cannot use <sys/elf.h> without proper system headers." 16*4371c79dSSchrodinger ZHU Yifan #endif 17*4371c79dSSchrodinger ZHU Yifan 18*4371c79dSSchrodinger ZHU Yifan #endif // LLVM_LIBC_MACROS_ELF_MACROS_H 19