[PATCH] D24690: Replace __ANDROID__ with __BIONIC__.

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 16 22:30:29 PDT 2016


compnerd added a subscriber: compnerd.
compnerd added a comment.

So, the only thing that Im confused about is where does `__BIONIC__` get defined?


================
Comment at: include/__config:766
@@ -761,3 +765,3 @@
 // Most unix variants have catopen.  These are the specific ones that don't.
-#if !defined(_WIN32) && !defined(__ANDROID__) && !defined(_NEWLIB_VERSION)
+#if !defined(_WIN32) && !defined(__BIONIC__) && !defined(_NEWLIB_VERSION)
 #define _LIBCPP_HAS_CATOPEN 1
----------------
Not your fault, but `_WIN32` and `__unix__`?  Im not sure if MinGW or cygwin define both.


Repository:
  rL LLVM

https://reviews.llvm.org/D24690





More information about the cfe-commits mailing list