define ROKEN_LIB_FUNCTION on all exported functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14773 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -46,21 +46,43 @@
|
||||
#define __attribute__(x)
|
||||
#endif
|
||||
|
||||
void verr(int eval, const char *fmt, va_list ap)
|
||||
#ifndef ROKEN_LIB_FUNCTION
|
||||
#ifdef _WIN32
|
||||
#define ROKEN_LIB_FUNCTION _stdcall
|
||||
#else
|
||||
#define ROKEN_LIB_FUNCTION
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void ROKEN_LIB_FUNCTION
|
||||
verr(int eval, const char *fmt, va_list ap)
|
||||
__attribute__ ((noreturn, format (printf, 2, 0)));
|
||||
void err(int eval, const char *fmt, ...)
|
||||
|
||||
void ROKEN_LIB_FUNCTION
|
||||
err(int eval, const char *fmt, ...)
|
||||
__attribute__ ((noreturn, format (printf, 2, 3)));
|
||||
void verrx(int eval, const char *fmt, va_list ap)
|
||||
|
||||
void ROKEN_LIB_FUNCTION
|
||||
verrx(int eval, const char *fmt, va_list ap)
|
||||
__attribute__ ((noreturn, format (printf, 2, 0)));
|
||||
void errx(int eval, const char *fmt, ...)
|
||||
|
||||
void ROKEN_LIB_FUNCTION
|
||||
errx(int eval, const char *fmt, ...)
|
||||
__attribute__ ((noreturn, format (printf, 2, 3)));
|
||||
void vwarn(const char *fmt, va_list ap)
|
||||
void ROKEN_LIB_FUNCTION
|
||||
vwarn(const char *fmt, va_list ap)
|
||||
__attribute__ ((format (printf, 1, 0)));
|
||||
void warn(const char *fmt, ...)
|
||||
|
||||
void ROKEN_LIB_FUNCTION
|
||||
warn(const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
void vwarnx(const char *fmt, va_list ap)
|
||||
|
||||
void ROKEN_LIB_FUNCTION
|
||||
vwarnx(const char *fmt, va_list ap)
|
||||
__attribute__ ((format (printf, 1, 0)));
|
||||
void warnx(const char *fmt, ...)
|
||||
|
||||
void ROKEN_LIB_FUNCTION
|
||||
warnx(const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
#endif /* __ERR_H__ */
|
||||
|
Reference in New Issue
Block a user