Mercurial > vim
annotate runtime/ftplugin/kwt.vim @ 34633:45d13860879a v9.1.0203
patch 9.1.0203: build-error on GNU/Hurd
Commit: https://github.com/vim/vim/commit/4a95377593d06599a88670fcb6b49041a4b47abe
Author: James McCoy <jamessan@jamessan.com>
Date: Mon Mar 25 16:22:23 2024 +0100
patch 9.1.0203: build-error on GNU/Hurd
Problem: build-error on GNU HURD
Solution: Define _XOPEN_SOURCE like for Android and Cygwin
(James McCoy)
strptime() requires _XOPEN_SOURCE to be defined for its declaration to
be visible. This is already done for non-Android Linux and Cygwin, but
also needs to be exposed for GNU/Hurd.
closes: #14285
Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 25 Mar 2024 16:30:12 +0100 |
parents | 8ae680be2a51 |
children |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
2 " Language: Kimwitu++ | |
3237 | 3 " Maintainer: Michael Piefel <entwurf@piefel.de> |
3445 | 4 " Last Change: 10 March 2012 |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3445
diff
changeset
|
5 " 2024 Jan 14 by Vim Project (browsefilter) |
7 | 6 |
7 " Behaves almost like C++ | |
8 runtime! ftplugin/cpp.vim ftplugin/cpp_*.vim ftplugin/cpp/*.vim | |
9 | |
3237 | 10 let s:cpo_save = &cpo |
11 set cpo&vim | |
7 | 12 |
13 " Limit the browser to related files | |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3445
diff
changeset
|
14 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") |
7 | 15 let b:browsefilter = "Kimwitu/Kimwitu++ Files (*.k)\t*.k\n" . |
16 \ "Lex/Flex Files (*.l)\t*.l\n" . | |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3445
diff
changeset
|
17 \ "Yacc/Bison Files (*.y)\t*.y\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3445
diff
changeset
|
18 if has("win32") |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3445
diff
changeset
|
19 let b:browsefilter ..= "All Files (*.*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3445
diff
changeset
|
20 else |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3445
diff
changeset
|
21 let b:browsefilter ..= "All Files (*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3445
diff
changeset
|
22 endif |
7 | 23 endif |
24 | |
25 " Set the errorformat for the Kimwitu++ compiler | |
26 set efm+=kc%.%#:\ error\ at\ %f:%l:\ %m | |
3237 | 27 |
3445 | 28 if exists("b:undo_ftplugin") |
29 let b:undo_ftplugin = b:undo_ftplugin . " | setlocal efm<" | |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3445
diff
changeset
|
30 \ . "| unlet! b:browsefilter" |
3445 | 31 else |
32 let b:undo_ftplugin = "setlocal efm<" | |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
3445
diff
changeset
|
33 \ . "| unlet! b:browsefilter" |
3445 | 34 endif |
35 | |
3237 | 36 let &cpo = s:cpo_save |
37 unlet s:cpo_save |