From b3f740695a0199d22cd97aee314f06c7ae32d2ea Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 26 Feb 2020 16:16:53 +0100 Subject: patch 8.2.0320: no Haiku support Problem: No Haiku support. Solution: Add support for Haiku. (Emir Sari, closes #5605) --- src/vim.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/vim.h') diff --git a/src/vim.h b/src/vim.h index 4d3ac3663..658a2f129 100644 --- a/src/vim.h +++ b/src/vim.h @@ -103,6 +103,7 @@ #if defined(FEAT_GUI_MOTIF) \ || defined(FEAT_GUI_GTK) \ || defined(FEAT_GUI_ATHENA) \ + || defined(FEAT_GUI_HAIKU) \ || defined(FEAT_GUI_MAC) \ || defined(FEAT_GUI_MSWIN) \ || defined(FEAT_GUI_PHOTON) @@ -223,6 +224,11 @@ # include "os_beos.h" #endif +#ifdef __HAIKU__ +# include "os_haiku.h" +# define __ARGS(x) x +#endif + #if (defined(UNIX) || defined(VMS)) \ && (!defined(MACOS_X) || defined(HAVE_CONFIG_H)) # include "os_unix.h" // bring lots of system header files @@ -2075,6 +2081,9 @@ typedef struct int_u format; // Vim's own special clipboard format int_u format_raw; // Vim's raw text clipboard format # endif +# ifdef FEAT_GUI_HAIKU + // No clipboard at the moment. TODO? +# endif } Clipboard_T; #else typedef int Clipboard_T; // This is required for the prototypes. @@ -2136,7 +2145,7 @@ typedef enum { // functions of these names. The declarations would break if the defines had // been seen at that stage. But it must be before globals.h, where error_ga // is declared. -#if !defined(MSWIN) && !defined(FEAT_GUI_X11) \ +#if !defined(MSWIN) && !defined(FEAT_GUI_X11) && !defined(FEAT_GUI_HAIKU) \ && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MAC) && !defined(PROTO) # define mch_errmsg(str) fprintf(stderr, "%s", (str)) # define display_errors() fflush(stderr) -- cgit v1.2.1