Use more libstdc++ specific macro
authorTommy Nguyen <remyabel@gmail.com>
Mon, 17 Jul 2017 20:03:48 +0000 (13:03 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 17 Jul 2017 20:08:14 +0000 (13:08 -0700)
Summary:
- The __GNUC__ macro is used by other compilers like Clang and
  ICC, but ext/stdio_filebuf.h is a libstdc++ only extension.

fixes #636
Closes https://github.com/facebook/folly/pull/637

Reviewed By: yfeldblum

Differential Revision: D5434532

Pulled By: Orvid

fbshipit-source-id: ce4f966a74aa9f82ae907c67807ac87ec1588173

folly/experimental/symbolizer/Symbolizer.cpp

index abfc64cfd6ff00b35c0639678244825e0c3bc2f7..8c7183e22b76359652a127c38edc1b79869e784b 100644 (file)
@@ -23,7 +23,7 @@
 #include <cstdlib>
 #include <iostream>
 
-#ifdef __GNUC__
+#ifdef __GLIBCXX__
 #include <ext/stdio_filebuf.h>
 #include <ext/stdio_sync_filebuf.h>
 #endif