Fix build

This commit is contained in:
Vas Crabb 2015-04-17 00:22:37 +10:00
parent cce44e050a
commit bf30ebe77e
3 changed files with 7 additions and 2 deletions

View file

@ -488,6 +488,7 @@ static int rect_height_compare(const void *a, const void *b)
return (p->w > q->w) ? -1 : (p->w < q->w);
}
#if 0
static int rect_width_compare(const void *a, const void *b)
{
stbrp_rect *p = (stbrp_rect *) a;
@ -498,6 +499,7 @@ static int rect_width_compare(const void *a, const void *b)
return 1;
return (p->h > q->h) ? -1 : (p->h < q->h);
}
#endif
static int rect_original_order(const void *a, const void *b)
{

View file

@ -698,7 +698,7 @@ static void expat_data(void *data, const XML_Char *s, int len)
if ((*curnode)->value != NULL)
{
memcpy(newdata, (*curnode)->value, oldlen);
free((*curnode)->value);
free((void *)(*curnode)->value);
}
(*curnode)->value = newdata;

View file

@ -20,6 +20,9 @@
typedef ComponentDescription AudioComponentDescription;
@protocol NSApplicationDelegate <NSObject>
@end
@protocol NSWindowDelegate <NSObject>
@end
@ -723,7 +726,7 @@ static void UpdateChangeCountCallback(void *userData,
@end
@interface AUEffectUtilAppDelegate : NSObject<NSApplicationDelegate>
@interface AUEffectUtilAppDelegate : NSObject <NSApplicationDelegate>
{
EffectInfo *effects;