Satya's blog - #defines in mod_auth_any
mod_auth_any
was splattered with code like this:
#ifdef WITH_APACHE2 ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r, "error message: %s",error); #else ap_log_rerror(APLOG_MARK, APLOG_ERR, r, "error message: %s",error); #endifI had lots of these calls, which I replaced with: ap_log_rerror(APLOGERROR,"error message: %s",error);and: #ifdef WITH_APACHE2 #define APLOG_MARK, APLOG_ERR, status, r, #else #define APLOG_MARK, APLOG_ERR, r, #endifMuch cleaner! |
|