From e1efc860c498f38e8a124e3d53a6d0b37e747010 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Thu, 9 Dec 2021 14:48:52 -0800 Subject: [PATCH] Prefer typedef over #define where it can be used for type definitions --- inc/version.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/version.h b/inc/version.h index 63e883c..112c57b 100644 --- a/inc/version.h +++ b/inc/version.h @@ -187,8 +187,8 @@ error Must specify RELEASE to build Medley. /* Set up defaults */ #define UNALIGNED_FETCH_OK -#define UNSIGNED unsigned long -#define INT long +typedef unsigned long UNSIGNED; +typedef long INT; @@ -237,9 +237,9 @@ typedef unsigned char u_char; typedef unsigned long u_int; typedef unsigned short u_short; #undef UNALIGNED_FETCH_OK -#define USHORT unsigned +typedef unsigned USHORT; #else -#define USHORT unsigned short +typedef unsigned short USHORT; #endif /* DOS */ /****************************************************************/