avcodec/faanidct: replace #define by typedef
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Mon, 16 Nov 2015 22:10:43 +0000 (17:10 -0500)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 20 Nov 2015 13:20:53 +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/faanidct.c

index ca82f77..bbaaa3f 100644 (file)
@@ -22,7 +22,7 @@
 #include "libavutil/common.h"
 
 /* To allow switching to double. */
 #include "libavutil/common.h"
 
 /* To allow switching to double. */
-#define FLOAT float
+typedef float FLOAT;
 
 #define B0 1.0000000000000000000000
 #define B1 1.3870398453221474618216 // cos(pi*1/16)sqrt(2)
 
 #define B0 1.0000000000000000000000
 #define B1 1.3870398453221474618216 // cos(pi*1/16)sqrt(2)