提交 c3f8b7f7 编写于 作者: A an_xinwei

fix build for wgr

Signed-off-by: Nan_xinwei <an_xinwei@hoperun.com>
上级 955d01f7
...@@ -26,7 +26,6 @@ extern "C" { ...@@ -26,7 +26,6 @@ extern "C" {
#define PARAM_VALUE_LEN_MAX 96 #define PARAM_VALUE_LEN_MAX 96
#define PARAM_NAME_LEN_MAX 96 #define PARAM_NAME_LEN_MAX 96
#define OS_FULL_NAME_LEN 128 #define OS_FULL_NAME_LEN 128
#define MAX_VALUE_LEN 128
#define VERSION_ID_MAX_LEN 256 #define VERSION_ID_MAX_LEN 256
static const char EMPTY_STR[] = { "" }; static const char EMPTY_STR[] = { "" };
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
namespace OHOS { namespace OHOS {
namespace system { namespace system {
static constexpr int MAX_VALUE_LEN = 128;
bool SetParameter(const std::string& key, const std::string& value) bool SetParameter(const std::string& key, const std::string& value)
{ {
int ret = SystemSetParameter(key.c_str(), value.c_str()); int ret = SystemSetParameter(key.c_str(), value.c_str());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册