aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-03-10 18:59:00 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-03-10 18:59:00 +0100
commit4b3f4aa77a3265f3b7547a576a1a0411b6a6fb8c (patch)
tree7cf143447a7169a6ca61d65ef99c61853e2e6dce /include
parentfa566ecd90a09926967275d54cd43222a01595a1 (diff)
Rename [set]progname() to mlib_[set]progname()
This namespacing was done because of a potential conflict with the setprogname() function available in <stdlib.h> as part of BSD systems.
Diffstat (limited to 'include')
-rw-r--r--include/errors.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/errors.h b/include/errors.h
index 975fac4..6721afa 100644
--- a/include/errors.h
+++ b/include/errors.h
@@ -3,8 +3,6 @@
#include <stdarg.h>
-void setprogname(const char *);
-
[[gnu::format(printf, 1, 2)]] void warn(const char *, ...);
[[gnu::format(printf, 1, 2)]] void warnx(const char *, ...);
void vwarn(const char *, va_list);
@@ -17,9 +15,11 @@ void vwarnx(const char *, va_list);
extern const char *__mlib_errors_progname;
+void mlib_setprogname(const char *);
+
[[gnu::always_inline]]
static inline const char *
-progname(void)
+mlib_progname(void)
{
return __mlib_errors_progname;
}