ohmu
·
2026-10-15
1/*
2 * Minimal hand-written replacement for the autoconf-generated config.h.
3 *
4 * Upstream libsixel ships config.h.in and lets `configure` produce config.h.
5 * We only vendor the encoder-side subset (see README.md), and those files
6 * reference a small, fixed set of macros, so the values are hard-coded here
7 * instead of carrying the autotools machinery.
8 *
9 * The values below hold for every platform fastfetch targets:
10 * Windows/MinGW-w64, Linux/glibc, Linux/musl, macOS and the BSDs.
11 * Re-check this file whenever the vendored subset is re-synced with upstream.
12 */
13
14#ifndef LIBSIXEL_CONFIG_H
15#define LIBSIXEL_CONFIG_H
16
17/* Standard headers (upstream: AC_CHECK_HEADERS) */
18#define HAVE_ASSERT_H 1
19#define HAVE_ERRNO_H 1
20#define HAVE_INTTYPES_H 1
21#define HAVE_LIMITS_H 1
22#define HAVE_MATH_H 1
23#define HAVE_MEMORY_H 1
24#define HAVE_STRING_H 1
25#define HAVE_SYS_TYPES_H 1
26
27/* libc functions (upstream: AC_CHECK_FUNCS) */
28#define HAVE_LDIV 1
29#define HAVE_MALLOC 1
30#define HAVE_REALLOC 1
31
32/* Byte order of the 32bpp pixel readers in pixelformat.c; 0 = little endian */
33#define SWAP_BYTES 0
34
35/*
36 * Guards the diagnostic pragma push/pop in dither.c. Not needed, and the
37 * pragma spelling is not portable across the compilers we support.
38 */
39#define HAVE_DIAGNOSTIC_DEPRECATED_DECLARATIONS 0
40
41/* Verbose quantizer tracing to stderr */
42#define HAVE_DEBUG 0
43
44/*
45 * HAVE_TESTS must stay *undefined* rather than 0: sixel.h gates its test-only
46 * declarations with `#ifdef HAVE_TESTS`, so defining it to 0 would still pull
47 * in declarations for functions we do not compile.
48 */
49#undef HAVE_TESTS
50
51/* Optional image loaders and features; not vendored */
52#undef HAVE_GD
53#undef HAVE_GDK_PIXBUF2
54#undef HAVE_JPEG
55#undef HAVE_LIBCURL
56#undef HAVE_LIBPNG
57
58#endif /* LIBSIXEL_CONFIG_H */