summaryrefslogtreecommitdiff
path: root/audio/snack/files/patch-generic_jkFormatMP3.c
blob: 48d7c79966ff56ddd3827df2a630920a05367865 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- generic/jkFormatMP3.c.orig	2005-12-14 11:29:38 UTC
+++ generic/jkFormatMP3.c
@@ -31,7 +31,6 @@ must retain this copyright notice.
 #include <string.h>
 #define FRAS2(is,a) ((is) > 0 ? t_43[(is)]*(a):-t_43[-(is)]*(a))
 #define MAXFRAMESIZE 2106  /* frame size starting at header */
-#define roundf(x) (floor((x)+(float )0.5f))
 static char *gblOutputbuf;
 static char *gblReadbuf;
 static int gblBufind = 0;
@@ -1311,6 +1310,7 @@ huffman_decode(int tbl,int *x,int *y)
 
 #include <math.h>
 
+#define roundf(x) (floor((x)+(float )0.5f))
 #define PI12      0.261799387f
 #define PI36      0.087266462f
 #define COSPI3    0.500000000f