I am working on a huge project which has one file A.h whose code has a line
typedef unsigned __int16 Elf64_Half;
Also since I am building on Linux and using dlinfo
function, I have to include link.h
file in my project. And this is where it creates a conflict because I have two typedefs having the same name Elf64_Half
. (Linux link.h
includes elftypes.h
and it too has: typedef unsigned short Elf64_Half;
).
What do I do in such a case? Is the only option I have, to change my typedef in a.h
? Remember it is not too easy because the project is huge and I will have to make a change in several places.
Is there a way to undef a typedef or something?