Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-17 00:51:30 +0300
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-25 04:36:40 +0300
commit5472de5ca85e2e49c6c369eb350f3180a1f0e75b (patch)
tree70e400e19e1510506adef6a28722c352c0768e2a /libavcodec/aac_defines.h
parent15dcc506d788578187e4542b0eedc09bc8b7c5c7 (diff)
avcodec/aac_defines: replace #define by typedef
See e.g https://stackoverflow.com/questions/1666353/are-typedef-and-define-the-same-in-c for rationale. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavcodec/aac_defines.h')
-rw-r--r--libavcodec/aac_defines.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/libavcodec/aac_defines.h b/libavcodec/aac_defines.h
index 3c45742ee1..eff63b347c 100644
--- a/libavcodec/aac_defines.h
+++ b/libavcodec/aac_defines.h
@@ -34,11 +34,11 @@
#define AAC_RENAME(x) x ## _fixed
#define AAC_RENAME_32(x) x ## _fixed_32
-#define INTFLOAT int
-#define INT64FLOAT int64_t
-#define SHORTFLOAT int16_t
-#define AAC_FLOAT SoftFloat
-#define AAC_SIGNE int
+typedef int INTFLOAT;
+typedef int64_t INT64FLOAT;
+typedef int16_t SHORTFLOAT;
+typedef SoftFloat AAC_FLOAT;
+typedef int AAC_SIGNE;
#define FIXR(a) ((int)((a) * 1 + 0.5))
#define FIXR10(a) ((int)((a) * 1024.0 + 0.5))
#define Q23(a) (int)((a) * 8388608.0 + 0.5)
@@ -82,11 +82,11 @@
#define AAC_RENAME(x) x
#define AAC_RENAME_32(x) x
-#define INTFLOAT float
-#define INT64FLOAT float
-#define SHORTFLOAT float
-#define AAC_FLOAT float
-#define AAC_SIGNE unsigned
+typedef float INTFLOAT;
+typedef float INT64FLOAT;
+typedef float SHORTFLOAT;
+typedef float AAC_FLOAT;
+typedef unsigned AAC_SIGNE;
#define FIXR(x) ((float)(x))
#define FIXR10(x) ((float)(x))
#define Q23(x) x