Skip to content

Commit

Permalink
Fix ap_log_perror macro in case of C99 compilation with
Browse files Browse the repository at this point in the history
APLOG_MAX_LOGLEVEL defined.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@953248 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Rainer Jung committed Jun 10, 2010
1 parent 5329a74 commit 3407ecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/http_log.h
Expand Up @@ -315,8 +315,8 @@ AP_DECLARE(void) ap_log_error_(const char *file, int line, int module_index,
#define ap_log_perror(...) ap_log_perror__(__VA_ARGS__)
#define ap_log_perror__(file, line, mi, level, status, p, ...) \
do { if ((level) <= APLOG_MAX_LOGLEVEL ) \
ap_do_log_perror(file, line, mi, level, status, p, \
__VA_ARGS__); } while(0)
ap_log_perror_(file, line, mi, level, status, p, \
__VA_ARGS__); } while(0)
#else
#define ap_log_perror ap_log_perror_
#endif
Expand Down

0 comments on commit 3407ecc

Please sign in to comment.