diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-26 16:16:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-26 16:16:53 +0100 |
commit | b3f740695a0199d22cd97aee314f06c7ae32d2ea (patch) | |
tree | 8221662bb578d80a7a044f8a20aef09394a5a1a8 /src/vim.h | |
parent | d672dde584effd55702ee15efec4cb2a8c77bf85 (diff) | |
download | vim-git-b3f740695a0199d22cd97aee314f06c7ae32d2ea.tar.gz |
patch 8.2.0320: no Haiku supportv8.2.0320
Problem: No Haiku support.
Solution: Add support for Haiku. (Emir Sari, closes #5605)
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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) |