~alinuxninja/nginx-edge/trunk

« back to all changes in this revision

Viewing changes to debian/modules/ngx_pagespeed/psol/include/net/instaweb/apache/apache_logging_includes.h

  • Committer: Vivian
  • Date: 2015-12-04 18:20:11 UTC
  • Revision ID: git-v1:a36f2bc32e884f7473b3a47040e5411306144d7d
* Do not extract psol.tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright 2012 Google Inc.
2
 
//
3
 
// Licensed under the Apache License, Version 2.0 (the "License");
4
 
// you may not use this file except in compliance with the License.
5
 
// You may obtain a copy of the License at
6
 
//
7
 
//      http://www.apache.org/licenses/LICENSE-2.0
8
 
//
9
 
// Unless required by applicable law or agreed to in writing, software
10
 
// distributed under the License is distributed on an "AS IS" BASIS,
11
 
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 
// See the License for the specific language governing permissions and
13
 
// limitations under the License.
14
 
//
15
 
// Author: morlovich@google.com (Maksim Orlovich)
16
 
//
17
 
// Makes sure we include Apache's http_log.h without conflicting with
18
 
// Google LOG() macros, and with proper per-module logging support in
19
 
// Apache 2.4
20
 
 
21
 
#ifndef NET_INSTAWEB_APACHE_APACHE_LOGGING_INCLUDES_H_
22
 
#define NET_INSTAWEB_APACHE_APACHE_LOGGING_INCLUDES_H_
23
 
 
24
 
// When HAVE_SYSLOG is defined, apache http_log.h will include syslog.h, which
25
 
// #defines LOG_* as numbers. This conflicts with definitions of the LOG(x)
26
 
// macros in Chromium base.
27
 
#undef HAVE_SYSLOG
28
 
#include "http_log.h"
29
 
 
30
 
// Apache >= 2.4 expect us to use the APLOG_USE_MODULE macro in order to
31
 
// permit per-module log-level configuration.
32
 
#ifdef APLOG_USE_MODULE
33
 
extern "C" {
34
 
APLOG_USE_MODULE(pagespeed);
35
 
}
36
 
#endif
37
 
 
38
 
#endif  // NET_INSTAWEB_APACHE_APACHE_LOGGING_INCLUDES_H_