From 945f73751630db0420522b5d6af0629d90376a45 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 12 Oct 2022 18:07:57 +0100 Subject: almost finished OSLib --- includes/oslib.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'includes/oslib.h') diff --git a/includes/oslib.h b/includes/oslib.h index fa444a3..fadc81f 100644 --- a/includes/oslib.h +++ b/includes/oslib.h @@ -54,12 +54,15 @@ typedef struct { OSPathSpec spec; } OSOpenedDir; // assumed name, might be something like OSDirRef though? +#ifdef __MWERKS__ +#pragma options align=packed +#endif typedef struct OSFileTypeMapping { OSType mactype; const char *magic; char length; + char executable; const char *mimetype; - char executable; // not sure why this is rearranged } OSFileTypeMapping; typedef struct OSFileTypeMappingList { @@ -71,10 +74,13 @@ typedef struct OSFileTypeMappings { OSFileTypeMappingList *mappingList; struct OSFileTypeMappings *next; } OSFileTypeMappings; +#ifdef __MWERKS__ +#pragma options align=reset +#endif /********************************/ /* Generic */ -extern int WildCardMatch(const char *wild, const char *name); +extern int WildCardMatch(char *wild, char *name); extern OSSpec *OS_MatchPath(const char *path); extern char *OS_GetFileNamePtr(char *path); extern char *OS_GetDirName(const OSPathSpec *spec, char *buf, int size); -- cgit v1.2.3