summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2019-09-15 00:45:36 +0200
committerArian <arian.kulmer@web.de>2020-02-07 20:09:45 +0100
commitd30f4335d09e2cabfdfc7bebee72a1746c0bb6e5 (patch)
treedc8c8ac296d2e71f05b2de2f4782d060edea2196
parent387654d352c2d252c2e683c6ceb4d44eef3a6362 (diff)
shinano-common: bluetooth: Push×pop PROPERTY_VALUE_MAX in buildcfg header
This deals with the PROPERTY_VALUE_MAX redefinition compilation issue. Change-Id: I34bb283512ca1a75c680af140846f16cccf0c645
-rw-r--r--bluetooth/bdroid_buildcfg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h
index 5eae134..f3af52b 100644
--- a/bluetooth/bdroid_buildcfg.h
+++ b/bluetooth/bdroid_buildcfg.h
@@ -18,6 +18,8 @@
#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H
+#pragma push_macro("PROPERTY_VALUE_MAX")
+
#include <cutils/properties.h>
#include <string.h>
@@ -47,5 +49,5 @@ static inline const char* getBTDefaultName()
#define BTM_DEF_LOCAL_NAME getBTDefaultName()
-#undef PROPERTY_VALUE_MAX
+#pragma pop_macro("PROPERTY_VALUE_MAX")
#endif