diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-04-04 19:22:04 +0300 |
|---|---|---|
| committer | Can Celik <ogulcancelik@gmail.com> | 2026-04-05 01:23:06 +0300 |
| commit | 41dd733ca7123c9ac4bfc6c781697a660e95b052 (patch) | |
| tree | 3fc91815ca139ef2e0b281bba0abda4ef15175f4 /vendor/libghostty-vt/pkg/libxml2/override | |
| parent | 55c138263e190a1e79d4b997bfb9397306c0ec1f (diff) | |
feat: finish ghostty pane backend integration
Diffstat (limited to 'vendor/libghostty-vt/pkg/libxml2/override')
3 files changed, 118 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/pkg/libxml2/override/config/posix/config.h b/vendor/libghostty-vt/pkg/libxml2/override/config/posix/config.h new file mode 100644 index 00000000..44228498 --- /dev/null +++ b/vendor/libghostty-vt/pkg/libxml2/override/config/posix/config.h @@ -0,0 +1,80 @@ +// This recreates parts of the generated config.h from cmake. Most of the +// defines actually happen directly in libxml2.zig. Some of these SHOULD +// be converted to build-time determined. + +/* Whether struct sockaddr::__ss_family exists */ +// #define HAVE_BROKEN_SS_FAMILY 1 + +/* Define to 1 if you have the <dlfcn.h> header file. */ +#define HAVE_DLFCN_H 1 + +/* Have dlopen based dso */ +#define HAVE_DLOPEN 1 + +/* Define to 1 if you have the <fcntl.h> header file. */ +#define HAVE_FCNTL_H 1 + +/* Define to 1 if you have the `ftime' function. */ +#define HAVE_FTIME 1 + +/* Define if getaddrinfo is there */ +#define HAVE_GETADDRINFO 1 + +/* Define to 1 if you have the `gettimeofday' function. */ +#define HAVE_GETTIMEOFDAY 1 + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `isascii' function. */ +#define HAVE_ISASCII 1 + +/* Define to 1 if you have the `mmap' function. */ +#define HAVE_MMAP 1 + +/* Define to 1 if you have the `munmap' function. */ +#define HAVE_MUNMAP 1 + +/* mmap() is no good without munmap() */ +#if defined(HAVE_MMAP) && !defined(HAVE_MUNMAP) +# undef /**/ HAVE_MMAP +#endif + +/* Define to 1 if you have the <poll.h> header file. */ +#define HAVE_POLL_H 1 + +/* Define to 1 if you have the `putenv' function. */ +#define HAVE_PUTENV 1 + +/* Define to 1 if you have the `rand_r' function. */ +#define HAVE_RAND_R 1 + +/* Define to 1 if you have the <resolv.h> header file. */ +#define HAVE_RESOLV_H 1 + +/* Define to 1 if you have the `stat' function. */ +#define HAVE_STAT 1 + +/* Define to 1 if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Whether va_copy() is available */ +#define HAVE_VA_COPY 1 + +/* Define to 1 if you have the <zlib.h> header file. */ +#define HAVE_ZLIB_H 1 + +/* Whether __va_copy() is available */ +#define HAVE___VA_COPY 1 + +/* Support for IPv6 */ +#define SUPPORT_IP6 1 + +/* Define if va_list is an array type */ +#define VA_LIST_IS_ARRAY 1 diff --git a/vendor/libghostty-vt/pkg/libxml2/override/config/win32/config.h b/vendor/libghostty-vt/pkg/libxml2/override/config/win32/config.h new file mode 100644 index 00000000..5108d08c --- /dev/null +++ b/vendor/libghostty-vt/pkg/libxml2/override/config/win32/config.h @@ -0,0 +1,20 @@ +#ifndef __LIBXML_WIN32_CONFIG__ +#define __LIBXML_WIN32_CONFIG__ + +#define SEND_ARG2_CAST +#define GETHOSTBYNAME_ARG_CAST + +#define HAVE_SYS_STAT_H +#define HAVE_STAT +#define HAVE_FCNTL_H + +#if defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER >= 1600) +#define HAVE_STDINT_H +#endif + +#if defined(_MSC_VER) && _MSC_VER < 1900 +#define snprintf _snprintf +#define vsnprintf _vsnprintf +#endif + +#endif /* __LIBXML_WIN32_CONFIG__ */ diff --git a/vendor/libghostty-vt/pkg/libxml2/override/include/libxml/xmlversion.h b/vendor/libghostty-vt/pkg/libxml2/override/include/libxml/xmlversion.h new file mode 100644 index 00000000..039d704d --- /dev/null +++ b/vendor/libghostty-vt/pkg/libxml2/override/include/libxml/xmlversion.h @@ -0,0 +1,18 @@ +// This recreates parts of the generated libxml/xmlversion.h.in that we need +// to build libxml2 without actually templating the header file. We define most +// of the defines in that file using flags to the compiler in libxml2.zig + +#ifndef __XML_VERSION_H__ +#define __XML_VERSION_H__ + +#include <libxml/xmlexports.h> + +// We are not GCC. +#define XML_IGNORE_FPTR_CAST_WARNINGS +#define XML_POP_WARNINGS +#define LIBXML_ATTR_FORMAT(fmt,args) +#define LIBXML_ATTR_ALLOC_SIZE(x) +#define ATTRIBUTE_UNUSED +#define XML_DEPRECATED + +#endif |
