Protect ENABLE_PROFILING to fix profiling=1.
Chromium defines ENABLE_PROFILING under the gyp flag profiling=1. This corrects the resulting mulitple defintion error: ../../talk/base/profiler.h:61:9: error: 'ENABLE_PROFILING' macro redefined [-Werror] #define ENABLE_PROFILING and allows us to use profiling=1 in standalone builds. TESTED=build passes with profiling=1 R=wu@webrtc.org Review URL: https://webrtc-codereview.appspot.com/10829004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5804 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
dd0b99debb
commit
a5586b50e5
@ -57,7 +57,9 @@
|
||||
#include "talk/base/sharedexclusivelock.h"
|
||||
|
||||
// Profiling could be switched via a build flag, but for now, it's always on.
|
||||
#ifndef ENABLE_PROFILING
|
||||
#define ENABLE_PROFILING
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_PROFILING
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user