https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4295b007aea0b4ed74476…
commit 4295b007aea0b4ed74476d3faef8235a5747acc2
Author: Victor Perevertkin <victor.perevertkin(a)reactos.org>
AuthorDate: Tue Apr 26 02:38:30 2022 +0300
Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org>
CommitDate: Tue Apr 26 03:38:37 2022 +0300
[HALX86] Do not define unnamed enums
---
hal/halx86/apic/apicp.h | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
diff --git a/hal/halx86/apic/apicp.h b/hal/halx86/apic/apicp.h
index a532fdcad8d..245ab197f59 100644
--- a/hal/halx86/apic/apicp.h
+++ b/hal/halx86/apic/apicp.h
@@ -170,7 +170,7 @@ typedef enum _APIC_RRS
} APIC_RRS;
/* Timer Constants */
-enum _TIMER_DV
+typedef enum _TIMER_DV
{
TIMER_DV_DivideBy2 = 0,
TIMER_DV_DivideBy4 = 1,
@@ -277,20 +277,14 @@ typedef union _LVT_REGISTER
} LVT_REGISTER;
/* IOAPIC offsets */
-enum
-{
- IOAPIC_IOREGSEL = 0x00,
- IOAPIC_IOWIN = 0x10
-};
+#define IOAPIC_IOREGSEL 0x00
+#define IOAPIC_IOWIN 0x10
/* IOAPIC Constants */
-enum
-{
- IOAPIC_ID = 0x00,
- IOAPIC_VER = 0x01,
- IOAPIC_ARB = 0x02,
- IOAPIC_REDTBL = 0x10
-};
+#define IOAPIC_ID 0x00
+#define IOAPIC_VER 0x01
+#define IOAPIC_ARB 0x02
+#define IOAPIC_REDTBL 0x10
typedef union _IOAPIC_REDIRECTION_REGISTER
{