Skip to content

Commit

Permalink
Enable type_index on Windows (tensorflow#8377)
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn authored and jhseu committed Mar 14, 2017
1 parent 05d7f79 commit ae45437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow/core/framework/type_index.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
#define TENSORFLOW_FRAMEWORK_TYPE_INDEX_H_

#include <string>
#ifdef __GXX_RTTI
#if defined(__GXX_RTTI) || defined(_CPPRTTI)
#include <typeindex>
#include <typeinfo>
#endif // __GXX_RTTI
Expand All @@ -30,7 +30,7 @@ namespace tensorflow {
// binary sizes. The following #ifdef section provides a non-RTTI
// replacement for std::type_index (with a minimal set of functions needed by
// the TensorFlow framework, and more can be added if necessary).
#ifndef __GXX_RTTI
#if !defined(__GXX_RTTI) && !defined(_CPPRTTI)

// A thin TypeIndex class that mimics std::type_index but does not use RTTI. As
// a result, it does not provide the actual name of the type, and only returns a
Expand Down

0 comments on commit ae45437

Please sign in to comment.