X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c551d959447b3aea01cc35f45aa4cacff2173ba..ef70f0ecdbc4268923e132b257c95e8a2525f4ca:/src/mac/ldef/extldef.h diff --git a/src/mac/ldef/extldef.h b/src/mac/ldef/extldef.h index 683219907d..c678fafe58 100644 --- a/src/mac/ldef/extldef.h +++ b/src/mac/ldef/extldef.h @@ -1,6 +1,10 @@ #pragma once -#include +#if defined(__UNIX__) + #include +#else + #include +#endif #include #define kExtLDEFID 128 // resource id of our LDEF resource @@ -53,7 +57,9 @@ static void DisposeExtLDEFInfo( ListHandle lh) ExtLDEFInfo* info = (ExtLDEFInfo* ) (**lh).refCon ; if ( info ) { + #if !TARGET_CARBON DisposeRoutineDescriptor( (RoutineDescriptor*) info->drawProc ) ; + #endif free( (void*) (**lh).refCon ) ; } }