From fa529fa70ecd60b9bf447a172e5b96a75741e08d Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 23 Oct 2020 16:31:52 +0200 Subject: [PATCH] tool/compile_gatt: mark profile_data as constexpr for C++11 --- tool/compile_gatt.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tool/compile_gatt.py b/tool/compile_gatt.py index deab868c1..0272ec960 100755 --- a/tool/compile_gatt.py +++ b/tool/compile_gatt.py @@ -51,6 +51,10 @@ header = ''' #include +// Reference: https://en.cppreference.com/w/cpp/feature_test +#if __cplusplus >= 200704L +constexpr +#endif const uint8_t profile_data[] = '''