]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
aplog_module_index must always be set for C++, so simplify
authorJeff Trawick <trawick@apache.org>
Sat, 26 Mar 2011 14:22:58 +0000 (14:22 +0000)
committerJeff Trawick <trawick@apache.org>
Sat, 26 Mar 2011 14:22:58 +0000 (14:22 +0000)
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

include/http_log.h

index 46d7368da37550900e91813688acb3a26746cf24..d635ab1cf255c45b44da8eb1e1a08c65bf5d3731 100644 (file)
@@ -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