Commit e5bd4cc3 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

aplog_module_index must always be set for C++, so simplify

the APLOG_MODULE_INDEX macro to avoid warnings with some
C++ compilers


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1085724 13f79535-47bb-0310-9956-ffa450edef68
parent 4640d62a
Loading
Loading
Loading
Loading
+4 −0
Changes for include/http_log.h: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -154,8 +154,12 @@ static int * const aplog_module_index;
 * @see APLOG_MARK
 * @see ap_log_error
 */
#ifdef __cplusplus
#define APLOG_MODULE_INDEX (*aplog_module_index)
#else /* __cplusplus */
#define APLOG_MODULE_INDEX  \
    (aplog_module_index ? *aplog_module_index : APLOG_NO_MODULE)
#endif /* __cplusplus */

/**
 * APLOG_MAX_LOGLEVEL can be defined to remove logging above some