Add NetBSD support

This commit is contained in:
David Carlier
2020-12-04 16:09:42 +00:00
committed by Léo Lam
parent ed1564515b
commit 2c355b81f2
8 changed files with 43 additions and 14 deletions

View File

@ -35,6 +35,8 @@ constexpr u32 m_os = OS_ALL | OS_LINUX;
constexpr u32 m_os = OS_ALL | OS_FREEBSD;
#elif __OpenBSD__
constexpr u32 m_os = OS_ALL | OS_OPENBSD;
#elif __NetBSD__
constexpr u32 m_os = OS_ALL | OS_NETBSD;
#endif
static API m_api = API_OPENGL;

View File

@ -27,6 +27,7 @@ enum OS
OS_ANDROID = (1 << 4),
OS_FREEBSD = (1 << 5),
OS_OPENBSD = (1 << 6),
OS_NETBSD = (1 << 7),
};
// Enum of known vendors
// Tegra and Nvidia are separated out due to such substantial differences