summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-12-16 21:24:59 +0000
committerAndy Polyakov <appro@openssl.org>2005-12-16 21:24:59 +0000
commit6c4da94687f250a855efd3735c657ae59c2b57b3 (patch)
treeba14c2bd5a2a4c36b4263028d0ce5aba61bc714b /crypto
parent6986d0e6eba6f16f556ef423ead9a538a0d4fcab (diff)
bio.h update from HEAD.
PR: 1252
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bio/bio.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/crypto/bio/bio.h b/crypto/bio/bio.h
index 7f49ccbe9d..07333cf0b3 100644
--- a/crypto/bio/bio.h
+++ b/crypto/bio/bio.h
@@ -676,17 +676,20 @@ void BIO_copy_next_retry(BIO *b);
/*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/
-#ifndef __GNUC__
-#define __attribute__(x)
+#ifdef __GNUC__
+# define __bio_h__attr__ __attribute__
+#else
+# define __bio_h__attr__(x)
#endif
int BIO_printf(BIO *bio, const char *format, ...)
- __attribute__((__format__(__printf__,2,3)));
+ __bio_h__attr__((__format__(__printf__,2,3)));
int BIO_vprintf(BIO *bio, const char *format, va_list args)
- __attribute__((__format__(__printf__,2,0)));
+ __bio_h__attr__((__format__(__printf__,2,0)));
int BIO_snprintf(char *buf, size_t n, const char *format, ...)
- __attribute__((__format__(__printf__,3,4)));
+ __bio_h__attr__((__format__(__printf__,3,4)));
int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
- __attribute__((__format__(__printf__,3,0)));
+ __bio_h__attr__((__format__(__printf__,3,0)));
+#undef __bio_h__attr__
/* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes