gallium: New PIPE_OS_UNIX to simplify code that is portable to all unices.
[mesa.git] / src / gallium / include / pipe / p_config.h
index 4152d6ac36a8ba053191d888402a3500244630ed..78fe1f4c87a220a77c52e41d7b876be1f699429f 100644 (file)
 
 #if defined(__linux__)
 #define PIPE_OS_LINUX
+#define PIPE_OS_UNIX
 #endif
 
 #if defined(__FreeBSD__)
 #define PIPE_OS_BSD
+#define PIPE_OS_UNIX
 #endif
 
 #if defined(__sun)
 #define PIPE_OS_SOLARIS
+#define PIPE_OS_UNIX
 #endif
 
 #if defined(__APPLE__)
 #define PIPE_OS_APPLE
+#define PIPE_OS_UNIX
 #endif
 
 #if defined(_WIN32) || defined(WIN32)
 #define PIPE_OS_WINDOWS
 #endif
 
+#if defined(__HAIKU__)
+#define PIPE_OS_HAIKU
+#define PIPE_OS_UNIX
+#endif
 
 /*
  * Subsystem.