diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2012-08-24 21:03:45 +0200 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2012-11-14 13:08:21 +0100 |
commit | 0b714343b0000a9a4c34645f5b8b9c1cbb370ab2 (patch) | |
tree | db9450f407afae33e52720285c2c6784e40ac626 | |
parent | 300b069c424e2b3cd961a0241914f822b2cccf97 (diff) |
av: More ISO C++ 11 fixes
Change-Id: I84bfab66d561cb0ded6e312b8cfe02e5fe2a182f
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r-- | cmds/stagefright/SineSource.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmds/stagefright/SineSource.h b/cmds/stagefright/SineSource.h index 76ab669f..41d3bf3f 100644 --- a/cmds/stagefright/SineSource.h +++ b/cmds/stagefright/SineSource.h @@ -4,6 +4,10 @@ #include <media/stagefright/MediaSource.h> +#if __cplusplus < 201103L && !defined(__GXX_EXPERIMENTAL_CXX0X__) && !defined(constexpr) +#define constexpr const +#endif + namespace android { struct MediaBufferGroup; @@ -24,7 +28,7 @@ protected: private: enum { kBufferSize = 8192 }; - static const double kFrequency = 500.0; + static constexpr double kFrequency = 500.0; bool mStarted; int32_t mSampleRate; |