avcodec/faandct: use typedef instead of #define
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 13 Nov 2015 16:17:08 +0000 (11:17 -0500)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Tue, 17 Nov 2015 21:33:54 +0000 (16:33 -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/faandct.c

index fc23df0..c8ea328 100644 (file)
@@ -29,7 +29,7 @@
 #include "libavutil/internal.h"
 #include "libavutil/libm.h"
 
-#define FLOAT float
+typedef float FLOAT;
 
 /* numbers generated by arbitrary precision arithmetic followed by truncation
 to 36 fractional digits (enough for a 128-bit IEEE quad, see /usr/include/math.h