aboutsummaryrefslogtreecommitdiff
path: root/include/olm
diff options
context:
space:
mode:
authorAlexey Rusakov <ktirf@users.sf.net>2017-09-28 20:38:55 +0900
committerRichard van der Hoff <richard@matrix.org>2017-09-29 09:35:04 +0100
commit3c33180fe3ecd14d7d592546b82055485518f2a7 (patch)
treea9a1a225c2bd86784287717e7b342f622895f530 /include/olm
parent0fd768e1b56157cb321d20eaffae59c3cbd4381f (diff)
Avoid C99 inside C++ code
This disrupts building at least with Visual Studio. Signed-off-by: Alexey Rusakov <ktirf@users.sf.net>
Diffstat (limited to 'include/olm')
-rw-r--r--include/olm/cipher.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/olm/cipher.h b/include/olm/cipher.h
index b26f8ba..f0f3033 100644
--- a/include/olm/cipher.h
+++ b/include/olm/cipher.h
@@ -123,9 +123,9 @@ extern const struct _olm_cipher_ops _olm_cipher_aes_sha_256_ops;
* struct _olm_cipher *cipher = OLM_CIPHER_BASE(&MY_CIPHER);
*/
#define OLM_CIPHER_INIT_AES_SHA_256(KDF_INFO) { \
- .base_cipher = { &_olm_cipher_aes_sha_256_ops },\
- .kdf_info = (uint8_t *)(KDF_INFO), \
- .kdf_info_length = sizeof(KDF_INFO) - 1 \
+ /*.base_cipher = */{ &_olm_cipher_aes_sha_256_ops },\
+ /*.kdf_info = */(uint8_t *)(KDF_INFO), \
+ /*.kdf_info_length = */sizeof(KDF_INFO) - 1 \
}
#define OLM_CIPHER_BASE(CIPHER) \
(&((CIPHER)->base_cipher))