Survive pedanticism.
[openssl.git] / crypto / dh / dh.h
index affafd2..2cc3797 100644 (file)
@@ -105,8 +105,13 @@ typedef struct dh_st
                (unsigned char *)(x))
 #define d2i_DHparams_bio(bp,x) (DH *)ASN1_d2i_bio((char *(*)())DH_new, \
                (char *(*)())d2i_DHparams,(bp),(unsigned char **)(x))
+#ifdef  __cplusplus
+#define i2d_DHparams_bio(bp,x) ASN1_i2d_bio((int (*)())i2d_DHparams,(bp), \
+               (unsigned char *)(x))
+#else
 #define i2d_DHparams_bio(bp,x) ASN1_i2d_bio(i2d_DHparams,(bp), \
                (unsigned char *)(x))
+#endif
 
 DH *   DH_new(void);
 void   DH_free(DH *dh);