mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 12:16:08 +00:00

Closes #124637. This is necessary to build LLVM with LLVM-libc and align the behavior with other libc implementations. ref: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/unistd.h.html
13 lines
256 B
C
13 lines
256 B
C
#ifndef LLVM_LIBC_MACROS_UNISTD_MACROS_H
|
|
#define LLVM_LIBC_MACROS_UNISTD_MACROS_H
|
|
|
|
#ifdef __linux__
|
|
#include "linux/unistd-macros.h"
|
|
#endif
|
|
|
|
#define STDIN_FILENO 0
|
|
#define STDOUT_FILENO 1
|
|
#define STDERR_FILENO 2
|
|
|
|
#endif // LLVM_LIBC_MACROS_UNISTD_MACROS_H
|