comparison 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
comparison
equal deleted inserted replaced
19525:619eb9bc3249 19526:22f0dda71638
101 #endif 101 #endif
102 102
103 #if defined(FEAT_GUI_MOTIF) \ 103 #if defined(FEAT_GUI_MOTIF) \
104 || defined(FEAT_GUI_GTK) \ 104 || defined(FEAT_GUI_GTK) \
105 || defined(FEAT_GUI_ATHENA) \ 105 || defined(FEAT_GUI_ATHENA) \
106 || defined(FEAT_GUI_HAIKU) \
106 || defined(FEAT_GUI_MAC) \ 107 || defined(FEAT_GUI_MAC) \
107 || defined(FEAT_GUI_MSWIN) \ 108 || defined(FEAT_GUI_MSWIN) \
108 || defined(FEAT_GUI_PHOTON) 109 || defined(FEAT_GUI_PHOTON)
109 # define FEAT_GUI_ENABLED // also defined with NO_X11_INCLUDES 110 # define FEAT_GUI_ENABLED // also defined with NO_X11_INCLUDES
110 # if !defined(FEAT_GUI) && !defined(NO_X11_INCLUDES) 111 # if !defined(FEAT_GUI) && !defined(NO_X11_INCLUDES)
219 # include <clib/exec_protos.h> 220 # include <clib/exec_protos.h>
220 #endif 221 #endif
221 222
222 #ifdef __BEOS__ 223 #ifdef __BEOS__
223 # include "os_beos.h" 224 # include "os_beos.h"
225 #endif
226
227 #ifdef __HAIKU__
228 # include "os_haiku.h"
229 # define __ARGS(x) x
224 #endif 230 #endif
225 231
226 #if (defined(UNIX) || defined(VMS)) \ 232 #if (defined(UNIX) || defined(VMS)) \
227 && (!defined(MACOS_X) || defined(HAVE_CONFIG_H)) 233 && (!defined(MACOS_X) || defined(HAVE_CONFIG_H))
228 # include "os_unix.h" // bring lots of system header files 234 # include "os_unix.h" // bring lots of system header files
2073 2079
2074 # if defined(MSWIN) || defined(FEAT_CYGWIN_WIN32_CLIPBOARD) 2080 # if defined(MSWIN) || defined(FEAT_CYGWIN_WIN32_CLIPBOARD)
2075 int_u format; // Vim's own special clipboard format 2081 int_u format; // Vim's own special clipboard format
2076 int_u format_raw; // Vim's raw text clipboard format 2082 int_u format_raw; // Vim's raw text clipboard format
2077 # endif 2083 # endif
2084 # ifdef FEAT_GUI_HAIKU
2085 // No clipboard at the moment. TODO?
2086 # endif
2078 } Clipboard_T; 2087 } Clipboard_T;
2079 #else 2088 #else
2080 typedef int Clipboard_T; // This is required for the prototypes. 2089 typedef int Clipboard_T; // This is required for the prototypes.
2081 #endif 2090 #endif
2082 2091
2134 2143
2135 // This has to go after the include of proto.h, as proto/gui.pro declares 2144 // This has to go after the include of proto.h, as proto/gui.pro declares
2136 // functions of these names. The declarations would break if the defines had 2145 // functions of these names. The declarations would break if the defines had
2137 // been seen at that stage. But it must be before globals.h, where error_ga 2146 // been seen at that stage. But it must be before globals.h, where error_ga
2138 // is declared. 2147 // is declared.
2139 #if !defined(MSWIN) && !defined(FEAT_GUI_X11) \ 2148 #if !defined(MSWIN) && !defined(FEAT_GUI_X11) && !defined(FEAT_GUI_HAIKU) \
2140 && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MAC) && !defined(PROTO) 2149 && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MAC) && !defined(PROTO)
2141 # define mch_errmsg(str) fprintf(stderr, "%s", (str)) 2150 # define mch_errmsg(str) fprintf(stderr, "%s", (str))
2142 # define display_errors() fflush(stderr) 2151 # define display_errors() fflush(stderr)
2143 # define mch_msg(str) printf("%s", (str)) 2152 # define mch_msg(str) printf("%s", (str))
2144 #else 2153 #else