Browse Source

Make VOID a typedef

'void' is a type so VOID can be typedef instead of
 a '#define' to improve compiler output

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Callum Farmer 2 years ago
parent
commit
056bdaa53e
7 changed files with 7 additions and 7 deletions
  1. 1 1
      inc/aarch64/efibind.h
  2. 1 1
      inc/arm/efibind.h
  3. 1 1
      inc/ia32/efibind.h
  4. 1 1
      inc/ia64/efibind.h
  5. 1 1
      inc/mips64el/efibind.h
  6. 1 1
      inc/riscv64/efibind.h
  7. 1 1
      inc/x86_64/efibind.h

+ 1 - 1
inc/aarch64/efibind.h

@@ -57,7 +57,7 @@ typedef char       CHAR8;
 typedef int8_t     INT8;
 
 #undef VOID
-#define VOID    void
+typedef void       VOID;
 
 typedef int64_t    INTN;
 typedef uint64_t   UINTN;

+ 1 - 1
inc/arm/efibind.h

@@ -65,7 +65,7 @@ typedef char       CHAR8;
 typedef int8_t     INT8;
 
 #undef VOID
-#define VOID    void
+typedef void       VOID;
 
 typedef int32_t    INTN;
 typedef uint32_t   UINTN;

+ 1 - 1
inc/ia32/efibind.h

@@ -107,7 +107,7 @@ typedef char       CHAR8;
 typedef int8_t     INT8;
 
 #undef VOID
-#define VOID    void
+typedef void       VOID;
 
 
 typedef int32_t    INTN;

+ 1 - 1
inc/ia64/efibind.h

@@ -91,7 +91,7 @@ typedef char       CHAR8;
 typedef int8_t     INT8;
 
 #undef VOID
-#define VOID    void
+typedef void       VOID;
 
 
 typedef int64_t    INTN;

+ 1 - 1
inc/mips64el/efibind.h

@@ -59,7 +59,7 @@ typedef char       CHAR8;
 typedef int8_t     INT8;
 
 #undef VOID
-#define VOID    void
+typedef void       VOID;
 
 typedef int64_t    INTN;
 typedef uint64_t   UINTN;

+ 1 - 1
inc/riscv64/efibind.h

@@ -38,7 +38,7 @@ typedef wchar_t                 CHAR16;
 typedef uint8_t                 BOOLEAN;
 #endif
 #undef VOID
-#define VOID                    void
+typedef void                    VOID;
 typedef int64_t                 INTN;
 typedef uint64_t                UINTN;
 

+ 1 - 1
inc/x86_64/efibind.h

@@ -117,7 +117,7 @@ typedef char       CHAR8;
 typedef int8_t     INT8;
 
 #undef VOID
-#define VOID    void
+typedef void       VOID;
 
 
 typedef int64_t    INTN;