Skip to content

Commit

Permalink
Avoid a problem when clang pretends to be GNUC
Browse files Browse the repository at this point in the history
  • Loading branch information
vjpai committed Mar 25, 2015
1 parent 335b97d commit f731d68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/grpc++/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@
::google::protobuf::io::ZeroCopyInputStream
#endif

#ifndef __clang__
#ifdef __GNUC__
#if (__GNUC__ * 100 + __GNUC_MINOR__ < 406)
#define GRPC_NO_NULLPTR
#endif
#endif
#endif

#ifdef GRPC_NO_NULLPTR
#include <memory>
Expand Down

0 comments on commit f731d68

Please sign in to comment.