Commit a6675a93 authored by Gabor Greif's avatar Gabor Greif 💬
Browse files

Don't redefine typedef names

instead define the structs referred to by
 - SectionFormatInfo
 - ObjectCodeFormatInfo

that were only forward-declared earlier.

This fixes redefinition errors with gcc4.4
parent d819e416
......@@ -318,12 +318,12 @@ char *cstring_from_section_name(
|| defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS) \
|| defined(openbsd_HOST_OS) || defined(gnu_HOST_OS)
# define OBJFORMAT_ELF
typedef struct _ObjectCodeFormatInfo { void* placeholder;} ObjectCodeFormatInfo;
typedef struct _SectionFormatInfo { void* placeholder; } SectionFormatInfo;
struct _SectionFormatInfo { void* placeholder; };
struct _ObjectCodeFormatInfo { void* placeholder; };
#elif defined (mingw32_HOST_OS)
# define OBJFORMAT_PEi386
typedef struct _ObjectCodeFormatInfo { void* placeholder;} ObjectCodeFormatInfo;
typedef struct _SectionFormatInfo { void* placeholder; } SectionFormatInfo;
struct _SectionFormatInfo { void* placeholder; };
struct _ObjectCodeFormatInfo { void* placeholder; };
#elif defined(darwin_HOST_OS) || defined(ios_HOST_OS)
# define OBJFORMAT_MACHO
# include "linker/MachOTypes.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment