aboutsummaryrefslogtreecommitdiff
path: root/bluetooth
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2019-09-15 00:45:36 +0200
committerDavide Garberi <dade.garberi@gmail.com>2019-11-05 21:38:39 +0100
commitc65810eef911ec83bb7df54ada9e39116b5f499a (patch)
treeb6c3b12d4c854ad9e0b7aea7e0ecf5ee5bdea2ec /bluetooth
parentd8e595e62c9b12381f08b8195f7e19cfcb411dc4 (diff)
msm8996-common: bluetooth: Push×pop PROPERTY_VALUE_MAX in buildcfg header
This deals with the PROPERTY_VALUE_MAX redefinition compilation issue. Change-Id: I34bb283512ca1a75c680af140846f16cccf0c645
Diffstat (limited to 'bluetooth')
-rw-r--r--bluetooth/bdroid_buildcfg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h
index 03c5115..c88bfe2 100644
--- a/bluetooth/bdroid_buildcfg.h
+++ b/bluetooth/bdroid_buildcfg.h
@@ -22,6 +22,8 @@
#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H
+#pragma push_macro("PROPERTY_VALUE_MAX")
+
#include <cutils/properties.h>
#include <string.h>
@@ -53,5 +55,6 @@ static inline const char* BtmGetDefaultName()
/* Increasing SEPs to 12 from 6 to support SHO/MCast i.e. two streams per codec */
#define AVDT_NUM_SEPS 12
-#undef PROPERTY_VALUE_MAX
+#pragma pop_macro("PROPERTY_VALUE_MAX")
+
#endif