xbps/include/compat.h
Đoàn Trần Công Danh 6122bff7fa
compat: correct HAVE_HUMANIZE_NUMBER typo
It should be HAVE_HUMANIZE_NUMBER instead of HAVE_HUMANIZE_HUMBER, from
the name of humanize_number(3).

It's mispelt only in this file, the configure script gets it correctly.

Closes: #334 [via git-merge-pr]
2021-06-26 16:54:03 +02:00

41 lines
896 B
C

#ifndef COMPAT_H
#define COMPAT_H
#include <inttypes.h>
#include <sys/types.h>
#include <stdarg.h>
#if HAVE_VISIBILITY
#define HIDDEN __attribute__ ((visibility("hidden")))
#else
#define HIDDEN
#endif
#ifndef HAVE_STRLCAT
size_t HIDDEN strlcat(char *, const char *, size_t);
#endif
#ifndef HAVE_STRLCPY
size_t HIDDEN strlcpy(char *, const char *, size_t);
#endif
#ifndef HAVE_STRCASESTR
char HIDDEN *strcasestr(const char *, const char *);
#endif
#ifndef HAVE_VASPRINTF
int HIDDEN vasprintf(char **, const char *, va_list);
#endif
#ifndef HAVE_HUMANIZE_NUMBER
#define HN_DECIMAL 0x01
#define HN_NOSPACE 0x02
#define HN_B 0x04
#define HN_DIVISOR_1000 0x08
#define HN_GETSCALE 0x10
#define HN_AUTOSCALE 0x20
int HIDDEN humanize_number(char *, size_t, int64_t, const char *, int, int);
#endif
#endif /* COMPAT_H */