fix incorrect libstdc++ from GCC >= 5.1 check

Assume that libstdc++ from GCC >= 5.1 is being used only when compiling with GCC >= 5.1.

This unbreaks GCC 4.8.5 and 4.9.3 builds after https://codereview.chromium.org/1837563002/
landed.

Review URL: https://codereview.chromium.org/1863523005

Cr-Commit-Position: refs/heads/master@{#385416}


CrOS-Libchrome-Original-Commit: 5c8abdc1aa67ebcfa7f2ecbb41506c65fa2ccc36
diff --git a/base/bit_cast.h b/base/bit_cast.h
index ad38238..853e865 100644
--- a/base/bit_cast.h
+++ b/base/bit_cast.h
@@ -64,7 +64,7 @@
   static_assert(sizeof(Dest) == sizeof(Source),
                 "bit_cast requires source and destination to be the same size");
 
-#if ((defined(__GLIBCXX__) && (__GLIBCXX__ >= 20150422)) || \
+#if (__GNUC__ > 5 || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1) || \
      defined(_LIBCPP_VERSION))
   // GCC 5.1 contains the first libstdc++ with is_trivially_copyable.
   // Assume libc++ Just Works: is_trivially_copyable added on May 13th 2011.