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 typedef enum
{ {
// Generics, types 0 to 9 // Generics, types 0 to 9
Unknown = 0, ///< Unknown disk type UnknownMedia = 0, ///< Unknown disk type
UnknownMO = 1, ///< Unknown magneto-optical UnknownMO = 1, ///< Unknown magneto-optical
GENERIC_HDD = 2, ///< Generic hard disk GENERIC_HDD = 2, ///< Generic hard disk
Microdrive = 3, ///< Microdrive type hard disk Microdrive = 3, ///< Microdrive type hard disk
@@ -617,7 +617,7 @@ typedef enum
// StorageTek tapes, types 590 to 609 // StorageTek tapes, types 590 to 609
// Travan, types 610 to 619 // Travan, types 610 to 619
Travan = 610, Travan1 = 610,
Travan1Ex = 611, Travan1Ex = 611,
Travan3 = 612, Travan3 = 612,
Travan3Ex = 613, Travan3Ex = 613,
@@ -992,7 +992,7 @@ typedef enum
MMC_ExtendedCSD = 57, ///< MMC Extended CSD (512 bytes) MMC_ExtendedCSD = 57, ///< MMC Extended CSD (512 bytes)
Xbox_SecuritySector = 58, ///< Xbox/Xbox 360 Security Sector (SS.bin) Xbox_SecuritySector = 58, ///< Xbox/Xbox 360 Security Sector (SS.bin)
Floppy_LeadOut = 59, ///< Manufacturer / duplication cylinder (floppy special data) 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_FirstTrackPregap = 61, ///< First track pregap (index 0)
CD_LeadOut = 62, ///< Lead-out area contents CD_LeadOut = 62, ///< Lead-out area contents
SCSI_MODESENSE_6 = 63, ///< Raw MODE SENSE (6) data 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) switch(type)
{ {
// Generics, types 0 to 9 // Generics, types 0 to 9
case Unknown: case UnknownMedia:
return "Unknown"; return "Unknown";
case UnknownMO: case UnknownMO:
return "Unknown Magneto-Optical"; return "Unknown Magneto-Optical";
@@ -886,7 +886,7 @@ const char *media_type_to_string(MediaType type)
return "T10000D"; return "T10000D";
// Travan, types 610 to 619 // Travan, types 610 to 619
case Travan: case Travan1:
return "Travan"; return "Travan";
case Travan1Ex: case Travan1Ex:
return "Travan-1 Ex"; return "Travan-1 Ex";