mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
util/detect_os: Add OpenHarmony OS support
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
This commit is contained in:
parent
7372c7c9e2
commit
d5290fc269
1 changed files with 11 additions and 0 deletions
|
|
@ -28,6 +28,14 @@
|
|||
#define DETECT_OS_ANDROID 1
|
||||
#endif
|
||||
|
||||
/*
|
||||
* OpenHarmony defines __linux__, so DETECT_OS_LINUX and DETECT_OS_POSIX will
|
||||
* also be defined.
|
||||
*/
|
||||
#if defined(__OHOS_FAMILY__)
|
||||
#define DETECT_OS_OHOS 1
|
||||
#endif
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
#define DETECT_OS_FREEBSD 1
|
||||
#define DETECT_OS_BSD 1
|
||||
|
|
@ -146,5 +154,8 @@
|
|||
#ifndef DETECT_OS_MANAGARM
|
||||
#define DETECT_OS_MANAGARM 0
|
||||
#endif
|
||||
#ifndef DETECT_OS_OHOS
|
||||
#define DETECT_OS_OHOS 0
|
||||
#endif
|
||||
|
||||
#endif /* DETECT_OS_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue