avcodec/lpc: replace #define by typedef
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Mon, 16 Nov 2015 21:42:40 +0000 (16:42 -0500)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 20 Nov 2015 13:20:13 +0000 (08:20 -0500)
See e.g https://stackoverflow.com/questions/1666353/are-typedef-and-define-the-same-in-c
for rationale.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavcodec/lpc.h

index 7e0ee3e17218cf02f3c963e2a2e9f8357b531919..edb1a6bc7d9de4ebfd35a78ad3acc82292e16290 100644 (file)
@@ -116,12 +116,12 @@ void ff_lpc_init_x86(LPCContext *s);
 void ff_lpc_end(LPCContext *s);
 
 #if USE_FIXED
-#define LPC_TYPE int
+typedef int LPC_TYPE;
 #else
 #ifdef LPC_USE_DOUBLE
-#define LPC_TYPE double
+typedef double LPC_TYPE;
 #else
-#define LPC_TYPE float
+typedef float LPC_TYPE;
 #endif
 #endif // USE_FIXED