Skip to content
This repository has been archived by the owner on Jun 20, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix TypeInfo name mangling for MinGW
  • Loading branch information
venix1 authored and jpf91 committed Apr 28, 2014
1 parent 1a0a4fb commit 2cb4c1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcc/d/dfrontend/mtype.c
Expand Up @@ -2305,8 +2305,10 @@ Identifier *Type::getTypeInfoIdent(int internal)
assert(strlen(name) < namelen); // don't overflow the buffer

size_t off = 0;
#ifndef IN_GCC
if (global.params.isOSX || global.params.isWindows && !global.params.is64bit)
++off; // C mangling will add '_' back in
#endif
Identifier *id = Lexer::idPool(name + off);

if (name != namebuf)
Expand Down

0 comments on commit 2cb4c1c

Please sign in to comment.