Reduce compiler warnings on Windows and MacOSX
author <shinichiro.hamaji@gmail.com> <>
Thu, 12 Jul 2012 06:37:47 +0000 (06:37 +0000)
committer <shinichiro.hamaji@gmail.com> <>
Thu, 12 Jul 2012 06:37:47 +0000 (06:37 +0000)
commit4f6088bc72ae56676b1353305a8295ce6e083d70
tree855c547fdf019a4c9c060d1695102504b137d586
parent7c613d6190d1a112a1943aa9f6526f070bc555b5
Reduce compiler warnings on Windows and MacOSX

DCHECK* causes "warning C4127: conditional expression is constant".

If compiled with -DWIN32_LEAN_AND_MEAN,
port.h: warning C4005: 'WIN32_LEAN_AND_MEAN': macro redefinition.

On MacOSX,
warning: "_END_GOOGLE_NAMESPACE_" redefined
warning: "_START_GOOGLE_NAMESPACE_" redefined
because config.h is included
 from base/commandlineflags.h:51
 from logging.cc:60
and
 from utilities.h:81
 from logging.cc:32
or so.

Contributed by ukai@

git-svn-id: https://google-glog.googlecode.com/svn/trunk@114 eb4d4688-79bd-11dd-afb4-1d65580434c0
src/config.h.in
src/glog/logging.h.in
src/windows/glog/logging.h
src/windows/port.h