#pragma once
-#include <Lists.h>
+#if defined(__UNIX__)
+ #include <Carbon/Carbon.h>
+#else
+ #include <Lists.h>
+#endif
#include <stdlib.h>
#define kExtLDEFID 128 // resource id of our LDEF resource
ExtLDEFInfo* info = (ExtLDEFInfo* ) (**lh).refCon ;
if ( info )
{
+ #if !TARGET_CARBON
DisposeRoutineDescriptor( (RoutineDescriptor*) info->drawProc ) ;
+ #endif
free( (void*) (**lh).refCon ) ;
}
}