Mercurial > vim
diff src/vim.h @ 19526:22f0dda71638 v8.2.0320
patch 8.2.0320: no Haiku support
Commit: https://github.com/vim/vim/commit/b3f740695a0199d22cd97aee314f06c7ae32d2ea
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 26 16:16:53 2020 +0100
patch 8.2.0320: no Haiku support
Problem: No Haiku support.
Solution: Add support for Haiku. (Emir Sari, closes https://github.com/vim/vim/issues/5605)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 26 Feb 2020 16:30:04 +0100 |
parents | 2bb0e80fcd32 |
children | 9e428147e4ee |
line wrap: on
line diff
--- 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)