Skip to content

Commit

Permalink
Merge pull request #5107 from WalterBright/fixosx32
Browse files Browse the repository at this point in the history
fix OSX 32 build
  • Loading branch information
dnadlinger committed Sep 22, 2015
2 parents 26bd745 + 31e72fa commit b6e5152
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend.d
Expand Up @@ -61,7 +61,7 @@ extern extern (C++) type* type_dyn_array(type* tnext);
extern extern (C) type* type_static_array(targ_size_t dim, type* tnext);
extern extern (C++) type* type_assoc_array(type* tkey, type* tvalue);
extern extern (C++) type* type_delegate(type* tnext);
extern extern (C++) type* type_function(tym_t tyf, type** ptypes, size_t nparams, bool variadic, type* tret);
extern extern (C) type* type_function(tym_t tyf, type** ptypes, size_t nparams, bool variadic, type* tret);
extern extern (C++) type* type_enum(const(char)* name, type* tbase);
extern extern (C++) type* type_struct_class(const(char)* name, uint alignsize, uint structsize,
type* arg1type, type* arg2type, bool isUnion, bool isClass, bool isPOD);
Expand Down
3 changes: 3 additions & 0 deletions src/backend/type.c
Expand Up @@ -435,6 +435,8 @@ type *type_delegate(type *tnext)
* Returns:
* Tcount already incremented
*/
extern "C" // because of size_t on OSX 32
{
type *type_function(tym_t tyf, type **ptypes, size_t nparams, bool variadic, type *tret)
{
param_t *paramtypes = NULL;
Expand All @@ -450,6 +452,7 @@ type *type_function(tym_t tyf, type **ptypes, size_t nparams, bool variadic, typ
t->Tcount++;
return t;
}
}

/***************************************
* Create an enum type.
Expand Down
2 changes: 1 addition & 1 deletion src/backend/type.h
Expand Up @@ -206,7 +206,7 @@ type *type_dyn_array(type *tnext);
extern "C" type *type_static_array(targ_size_t dim, type *tnext);
type *type_assoc_array(type *tkey, type *tvalue);
type *type_delegate(type *tnext);
type *type_function(tym_t tyf, type **ptypes, size_t nparams, bool variadic, type *tret);
extern "C" type *type_function(tym_t tyf, type **ptypes, size_t nparams, bool variadic, type *tret);
type *type_enum(const char *name, type *tbase);
type *type_struct_class(const char *name, unsigned alignsize, unsigned structsize,
type *arg1type, type *arg2type, bool isUnion, bool isClass, bool isPOD);
Expand Down

0 comments on commit b6e5152

Please sign in to comment.