Skip to content

Commit

Permalink
Support Haiku.
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkomandy committed May 14, 2021
1 parent ff2bc31 commit 74ee3a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions extern/poshlib/posh.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ HP-UX C/C++ Compiler:
# define POSH_OS_STRING "FreeBSD"
#endif

#if defined __HAIKU__
# define POSH_OS_HAIKU 1
# define POSH_OS_STRING "Haiku"
#endif

#if defined __CYGWIN32__
# define POSH_OS_CYGWIN32 1
# define POSH_OS_STRING "Cygwin"
Expand Down
5 changes: 4 additions & 1 deletion src/nvcore/nvcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
#elif defined POSH_OS_FREEBSD
# define NV_OS_FREEBSD 1
# define NV_OS_UNIX 1
#elif defined POSH_OS_HAIKU
# define NV_OS_HAIKU 1
# define NV_OS_UNIX 1
#elif defined POSH_OS_OPENBSD
# define NV_OS_OPENBSD 1
# define NV_OS_UNIX 1
Expand Down Expand Up @@ -375,7 +378,7 @@ namespace nv {
#elif NV_CC_GNUC
# if NV_OS_LINUX
# include "DefsGnucLinux.h"
# elif NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_OPENBSD
# elif NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_OPENBSD || NV_OS_HAIKU
# include "DefsGnucDarwin.h"
# elif NV_OS_ORBIS
# include "DefsOrbis.h"
Expand Down

0 comments on commit 74ee3a7

Please sign in to comment.