X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcommon%2Ffiletype.h;h=9923742cfe96c629ebafc7ec690ba854a372c0a3;hb=74108cd74fc3ca3ad4f69b743233fa79791106b9;hp=b21f982d1307a5df0bc3e1f51d836e99034664a5;hpb=d0bb32e6c68d22b690c7ae112d4c250d7edcd1d8;p=cc65 diff --git a/src/common/filetype.h b/src/common/filetype.h index b21f982d1..9923742cf 100644 --- a/src/common/filetype.h +++ b/src/common/filetype.h @@ -45,7 +45,7 @@ /* File types */ -enum { +typedef enum { FILETYPE_UNKNOWN = -1, /* Unknown file type */ FILETYPE_C, /* C source file */ FILETYPE_ASM, /* Assembler file */ @@ -53,7 +53,7 @@ enum { FILETYPE_LIB, /* Library file */ FILETYPE_GR, /* GEOS resource file */ FILETYPE_O65 /* O65 object file */ -}; +} FILETYPE; @@ -63,7 +63,7 @@ enum { -int GetFileType (const char* Name); +FILETYPE GetFileType (const char* Name); /* Determine the type of the given file by looking at the name. If the file * type could not be determined, the function returns FILETYPE_UNKOWN. */