The proposed solution will not work. It will fail for librasync >= 1.0.0.
RS_MD4_SIG_MAGIC is a constant of the enumeration.
So #ifdef RS_MD4_SIG_MAGIC is always false.
The possible working solution could be based
on RS_DEFAULT_STRONG_LEN which exists for
librasync < 1.0.0 only.
The proposed solution will not work. It will fail for librasync >= 1.0.0. STRONG_ LEN which exists for
RS_MD4_SIG_MAGIC is a constant of the enumeration.
So #ifdef RS_MD4_SIG_MAGIC is always false.
The possible working solution could be based
on RS_DEFAULT_
librasync < 1.0.0 only.
#ifdef RS_DEFAULT_ STRONG_ LEN begin(( size_t) blocklen,
( size_t) RS_DEFAULT_ STRONG_ LEN); begin(( size_t) blocklen,
( size_t) 8, RS_MD4_SIG_MAGIC);
sm->sig_job = rs_sig_
#else /* librasync >= 1.0.0 */
sm->sig_job = rs_sig_
#endif