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); return (p->w > q->w) ? -1 : (p->w < q->w);
} }
#if 0
static int rect_width_compare(const void *a, const void *b) static int rect_width_compare(const void *a, const void *b)
{ {
stbrp_rect *p = (stbrp_rect *) a; stbrp_rect *p = (stbrp_rect *) a;
@ -498,6 +499,7 @@ static int rect_width_compare(const void *a, const void *b)
return 1; return 1;
return (p->h > q->h) ? -1 : (p->h < q->h); return (p->h > q->h) ? -1 : (p->h < q->h);
} }
#endif
static int rect_original_order(const void *a, const void *b) 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) if ((*curnode)->value != NULL)
{ {
memcpy(newdata, (*curnode)->value, oldlen); memcpy(newdata, (*curnode)->value, oldlen);
free((*curnode)->value); free((void *)(*curnode)->value);
} }
(*curnode)->value = newdata; (*curnode)->value = newdata;

View File

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