wofan / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

glog conflict with Windows Platform SDK 7.1 #105

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
#include <windows.h>
#include <glog/logging.h>

int main() {
  PLOG(ERROR) << "test";
}

ERROR is a macro in WinGDI.h.

Chrome has same issue but already solved it, see 
http://src.chromium.org/viewvc/chrome/trunk/src/base/logging.h

Original issue reported on code.google.com by arthur...@google.com on 23 Nov 2011 at 7:58

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/google-glog/source/detail?r=101

should have fixed this.

Original comment by shinichi...@gmail.com on 11 Jan 2012 at 9:17