Commits

Johannes Pfau committed 24e8402

Add Android version definition

Comments (0)

Files changed (1)

d/target-ver-syms.sh

 freebsd*) d_os_versym=FreeBSD ; d_unix=1 ;;
 k*bsd*-gnu) d_os_versym=FreeBSD ; d_unix=1 ;;
 kopensolaris*-gnu) d_os_versym=Solaris; d_unix=1 ;;
-linux*) d_os_versym=linux ; d_unix=1 ;; # This is supposed to be "linux", not "Linux", according to the spec
+linux*) # This is supposed to be "linux", not "Linux", according to the spec
+        d_os_versym=linux ; d_unix=1 ;
+        case "$d_target_os" in
+            *androideabi) d_os_versym=Android; d_os_versym2=linux ;;
+        esac
+        ;;
 mingw32*) case "$target_vendor" in
               pc*) d_os_versym=Win32; d_os_versym2=MinGW32; d_windows=1 ;;
               w64*) d_os_versym=Win64; d_os_versym2=MinGW64; d_windows=1 ;;
 Solaris) echo "#define TARGET_SOLARIS 1" ;;
 Win32)   echo "#define TARGET_WINDOS  1" ;;
 Win64)   echo "#define TARGET_WINDOS  1" ;;
+Android) echo "#define TARGET_ANDROID 1";
+         echo "#define TARGET_LINUX 1";
+         ;;
 *)       echo "#define TARGET_UNIX    1" ;;
 esac
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.