提交 68b42986 编写于 作者: R Richard Levitte

Add GCC attributes when compiled with gcc. This helps find out if

we're using the printing functions correctly or not.

I used the corresponding attributes found in the header files of my
Linux installation.
上级 57544ee2
...@@ -612,10 +612,17 @@ void BIO_copy_next_retry(BIO *b); ...@@ -612,10 +612,17 @@ void BIO_copy_next_retry(BIO *b);
/*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/ /*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/
int BIO_printf(BIO *bio, const char *format, ...); #ifndef __GNUC__
int BIO_vprintf(BIO *bio, const char *format, va_list args); #define __attribute__(x)
int BIO_snprintf(char *buf, size_t n, const char *format, ...); #endif
int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args); int BIO_printf(BIO *bio, const char *format, ...)
__attribute__((__format__(__printf__,2,3)));
int BIO_vprintf(BIO *bio, const char *format, va_list args)
__attribute__((__format__(__printf__,2,0)));
int BIO_snprintf(char *buf, size_t n, const char *format, ...)
__attribute__((__format__(__printf__,3,4)));
int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
__attribute__((__format__(__printf__,3,0)));
/* BEGIN ERROR CODES */ /* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes /* The following lines are auto generated by the script mkerr.pl. Any changes
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册