X-Git-Url: https://git.datadissipation.net/libcext/blobdiff_plain/cd126c30bbe33208cfa4d9922a97ac14e3139270..refs/heads/master:/asprintf.h diff --git a/asprintf.h b/asprintf.h index ddce911..47b9752 100644 --- a/asprintf.h +++ b/asprintf.h @@ -26,26 +26,26 @@ */ /* https://git.datadissipation.net */ -#ifndef ASPRINTF_H_ - #define ASPRINTF_H_ 1 +#ifndef LCE_ASPRINTF_H + #define LCE_ASPRINTF_H 1 - #ifdef ASPRINTF_INCLUDE_LIBC + #ifdef LCE_ASPRINTF_INCLUDE_LIBC #include #include #include - #endif /* ASPRINTF_INCLUDE_LIBC */ + #endif /* LCE_ASPRINTF_INCLUDE_LIBC */ #ifndef HAVE_ASPRINTF #define HAVE_ASPRINTF 1 - #define asprintf i_asprintf_ - #define vasprintf i_vasprintf_ -int i_vasprintf_(char **strp, const char *fmt, va_list ap); -int i_asprintf_(char **strp, const char *fmt, ...); + #define asprintf lce_asprintf_ + #define vasprintf lce_vasprintf_ +int lce_vasprintf_(char **strp, const char *fmt, va_list ap); +int lce_asprintf_(char **strp, const char *fmt, ...); #endif /* !HAVE_ASPRINTF */ - #ifdef ASPRINTF_IMPLEMENTATION + #ifdef LCE_ASPRINTF_IMPLEMENTATION int -i_vasprintf_(char **strp, const char *fmt, va_list ap) +lce_vasprintf_(char **strp, const char *fmt, va_list ap) { int size; va_list tp; @@ -61,16 +61,16 @@ i_vasprintf_(char **strp, const char *fmt, va_list ap) } int -i_asprintf_(char **strp, const char *fmt, ...) +lce_asprintf_(char **strp, const char *fmt, ...) { int ret; va_list ap; va_start(ap, fmt); - ret = i_vasprintf_(strp, fmt, ap); + ret = lce_vasprintf_(strp, fmt, ap); va_end(ap); return ret; } - #endif /* ASPRINTF_IMPLEMENTATION */ -#endif /* !ASPRINTF_H_ */ + #endif /* LCE_ASPRINTF_IMPLEMENTATION */ +#endif /* !LCE_ASPRINTF_H */