Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@briansmith.org>2016-01-17 22:30:42 +0300
committerDavid Benjamin <davidben@google.com>2016-01-21 23:58:51 +0300
commit061332f21643a910941c32cbfc40e577c380e342 (patch)
tree1180cc35ec109cd6546d8d68d4658a28f0e6bf36 /include/openssl/bio.h
parent0687bdfc12e7ce5832610465d12c69040d1c714b (diff)
Define |OPENSSL_PRINTF_FORMAT_FUNC| for format string annotations.
This centralizes the conditional logic into openssl/base.h so that it doesn't have to be repeated. The name |OPENSSL_PRINTF_FORMAT_FUNC| was chosen in anticipation of eventually defining an |OPENSSL_PRINTF_FORMAT_ARG| for MSVC-style parameter annotations. Change-Id: I273e6eddd209e696dc9f82099008c35b6d477cdb Reviewed-on: https://boringssl-review.googlesource.com/6909 Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'include/openssl/bio.h')
-rw-r--r--include/openssl/bio.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/openssl/bio.h b/include/openssl/bio.h
index c88a3e18..0c8bfe40 100644
--- a/include/openssl/bio.h
+++ b/include/openssl/bio.h
@@ -312,14 +312,8 @@ OPENSSL_EXPORT void BIO_copy_next_retry(BIO *bio);
*
* These functions are versions of printf functions that output to a BIO rather
* than a FILE. */
-#ifdef __GNUC__
-#define __bio_h__attr__ __attribute__
-#else
-#define __bio_h__attr__(x)
-#endif
OPENSSL_EXPORT int BIO_printf(BIO *bio, const char *format, ...)
- __bio_h__attr__((__format__(__printf__, 2, 3)));
-#undef __bio_h__attr__
+ OPENSSL_PRINTF_FORMAT_FUNC(2, 3);
/* Utility functions. */