Bram Moolenaar | e828b76 | 2018-09-10 17:51:58 +0200 | [diff] [blame] | 1 | /* |
| 2 | * LibXDiff by Davide Libenzi ( File Differential Library ) |
| 3 | * Copyright (C) 2003 Davide Libenzi |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2.1 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, see |
| 17 | * <http://www.gnu.org/licenses/>. |
| 18 | * |
| 19 | * Davide Libenzi <davidel@xmailserver.org> |
| 20 | * |
| 21 | */ |
| 22 | |
Christian Brabandt | ba02e47 | 2021-08-31 20:46:39 +0200 | [diff] [blame] | 23 | // The following includes come from Vim: |
| 24 | |
Bram Moolenaar | 707d226 | 2019-12-04 22:16:54 +0100 | [diff] [blame] | 25 | // defines HAVE_ATTRIBUTE_UNUSED |
Bram Moolenaar | e828b76 | 2018-09-10 17:51:58 +0200 | [diff] [blame] | 26 | #ifdef HAVE_CONFIG_H |
Bram Moolenaar | 88c86eb | 2019-01-17 17:13:30 +0100 | [diff] [blame] | 27 | # ifdef VMS |
| 28 | # include "[.auto]config.h" |
| 29 | # else |
| 30 | # include "../auto/config.h" |
| 31 | # endif |
Bram Moolenaar | e828b76 | 2018-09-10 17:51:58 +0200 | [diff] [blame] | 32 | #endif |
| 33 | |
Bram Moolenaar | 707d226 | 2019-12-04 22:16:54 +0100 | [diff] [blame] | 34 | // Mark unused function arguments with UNUSED, so that gcc -Wunused-parameter |
| 35 | // can be used to check for mistakes. |
Bram Moolenaar | e828b76 | 2018-09-10 17:51:58 +0200 | [diff] [blame] | 36 | #ifdef HAVE_ATTRIBUTE_UNUSED |
| 37 | # define UNUSED __attribute__((unused)) |
| 38 | #else |
| 39 | # define UNUSED |
| 40 | #endif |
| 41 | |
| 42 | #if defined(_MSC_VER) |
| 43 | # define inline __inline |
| 44 | #endif |
| 45 | |
| 46 | #if !defined(XINCLUDE_H) |
| 47 | #define XINCLUDE_H |
| 48 | |
Christian Brabandt | ba02e47 | 2021-08-31 20:46:39 +0200 | [diff] [blame] | 49 | // This effectively re-verts b46054b3746271d23feab0 from git |
Bram Moolenaar | e828b76 | 2018-09-10 17:51:58 +0200 | [diff] [blame] | 50 | #include <ctype.h> |
| 51 | #include <stdio.h> |
| 52 | #include <stdlib.h> |
| 53 | #if !defined(_WIN32) |
| 54 | #include <unistd.h> |
| 55 | #endif |
| 56 | #include <string.h> |
| 57 | #include <limits.h> |
Christian Brabandt | ba02e47 | 2021-08-31 20:46:39 +0200 | [diff] [blame] | 58 | // This include comes from git, so uncomment it |
| 59 | #if 0 |
| 60 | #include "git-compat-util.h" |
| 61 | #endif |
Bram Moolenaar | e828b76 | 2018-09-10 17:51:58 +0200 | [diff] [blame] | 62 | #include "xmacros.h" |
| 63 | #include "xdiff.h" |
| 64 | #include "xtypes.h" |
| 65 | #include "xutils.h" |
| 66 | #include "xprepare.h" |
| 67 | #include "xdiffi.h" |
| 68 | #include "xemit.h" |
| 69 | |
| 70 | |
Christian Brabandt | ba02e47 | 2021-08-31 20:46:39 +0200 | [diff] [blame] | 71 | #endif /* #if !defined(XINCLUDE_H) */ |