Skip to content

Commit

Permalink
[make] Update MAKECONFIGHEADER macro
Browse files Browse the repository at this point in the history
Add "C++" => "CPP" translation to support libraries
having "c++" in their names, for example libstdc++.
Without such translation, resulting #define does not
compile.

Change-Id: Ieac533782a26b4ce87caf9ad2ec1105c25eeaf01
  • Loading branch information
Michael Ryleev authored and arve-android committed May 14, 2015
1 parent b4aaff6 commit 1675485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make/macros.mk
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ define MAKECONFIGHEADER
echo \#ifndef __$${LDEF}_H > $1.tmp; \
echo \#define __$${LDEF}_H >> $1.tmp; \
for d in `echo $($2) | tr '[:lower:]' '[:upper:]'`; do \
echo "#define $$d" | sed "s/=/\ /g;s/-/_/g;s/\//_/g;s/\./_/g;s/\//_/g" >> $1.tmp; \
echo "#define $$d" | sed "s/=/\ /g;s/-/_/g;s/\//_/g;s/\./_/g;s/\//_/g;s/C++/CPP/g" >> $1.tmp; \
done; \
echo \#endif >> $1.tmp; \
$(call TESTANDREPLACEFILE,$1.tmp,$1)
Expand Down

0 comments on commit 1675485

Please sign in to comment.