Rename some enumerations because of collisions with Windows.

This commit is contained in:
2025-10-11 03:31:06 +01:00
parent b4df385b79
commit c043ca207d
2 changed files with 17 additions and 17 deletions

View File

@@ -94,7 +94,7 @@
typedef enum
{
// Generics, types 0 to 9
Unknown = 0, ///< Unknown disk type
UnknownMedia = 0, ///< Unknown disk type
UnknownMO = 1, ///< Unknown magneto-optical
GENERIC_HDD = 2, ///< Generic hard disk
Microdrive = 3, ///< Microdrive type hard disk
@@ -617,7 +617,7 @@ typedef enum
// StorageTek tapes, types 590 to 609
// Travan, types 610 to 619
Travan = 610,
Travan1 = 610,
Travan1Ex = 611,
Travan3 = 612,
Travan3Ex = 613,
@@ -992,7 +992,7 @@ typedef enum
MMC_ExtendedCSD = 57, ///< MMC Extended CSD (512 bytes)
Xbox_SecuritySector = 58, ///< Xbox/Xbox 360 Security Sector (SS.bin)
Floppy_LeadOut = 59, ///< Manufacturer / duplication cylinder (floppy special data)
DCB = 60, ///< DVD Disc Control Blocks
DiscControlBlock = 60, ///< DVD Disc Control Blocks
CD_FirstTrackPregap = 61, ///< First track pregap (index 0)
CD_LeadOut = 62, ///< Lead-out area contents
SCSI_MODESENSE_6 = 63, ///< Raw MODE SENSE (6) data

View File

@@ -54,7 +54,7 @@ const char *media_type_to_string(MediaType type)
switch(type)
{
// Generics, types 0 to 9
case Unknown:
case UnknownMedia:
return "Unknown";
case UnknownMO:
return "Unknown Magneto-Optical";
@@ -886,7 +886,7 @@ const char *media_type_to_string(MediaType type)
return "T10000D";
// Travan, types 610 to 619
case Travan:
case Travan1:
return "Travan";
case Travan1Ex:
return "Travan-1 Ex";