Add NetBSD support

This commit is contained in:
David Carlier 2020-12-04 16:09:42 +00:00 committed by Léo Lam
commit 2c355b81f2
No known key found for this signature in database
GPG key ID: 0DF30F9081000741
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