[google/gcc-4_6_2-mobile] Enable __ANDROID__ macro for Android x86 target

Submitted by Ilya Enkovich on Feb. 21, 2012, 9:45 a.m.

Details

Message ID CAMbmDYYWQH12uR89NSzgY_DhQTJxfUgTWYneiN4LaUzBTmXUcg@mail.gmail.com
State New
Headers show

Commit Message

Ilya Enkovich Feb. 21, 2012, 9:45 a.m.
Hello,

Here is a patch to enable __ANDROID__ macro on x86 Android targets.
Currently it is enabled for ARM only. OK for google/gcc-4_6_2-mobile
branch?

Thanks
Ilya
--

2012-02-21  Enkovich Ilya  <ilya.enkovich@intel.com>

	* gcc/config/i386/linux.h (TARGET_OS_CPP_BUILTINS): Add
	ANDROID_TARGET_OS_CPP_BUILTINS.

Patch hide | download patch | download mbox

Index: gcc/config/i386/linux.h
===================================================================
--- gcc/config/i386/linux.h	(revision 184395)
+++ gcc/config/i386/linux.h	(working copy)
@@ -73,6 +73,7 @@ 
   do						\
     {						\
 	LINUX_TARGET_OS_CPP_BUILTINS();		\
+	ANDROID_TARGET_OS_CPP_BUILTINS();	\
     }						\
   while (0)