summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h11
1 files changed, 10 insertions, 1 deletions
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)