01-mathinc.patch 513 B

123456789101112
  1. diff -Nur snack2.2.10/generic/jkFormatMP3.c snack2.2.10.new/generic/jkFormatMP3.c
  2. --- snack2.2.10/generic/jkFormatMP3.c 2005-12-14 11:29:38.000000000 +0000
  3. +++ snack2.2.10.new/generic/jkFormatMP3.c 2011-01-01 01:24:04.723341697 +0000
  4. @@ -29,6 +29,7 @@
  5. #include "snack.h"
  6. #include "jkFormatMP3.h"
  7. #include <string.h>
  8. +#include <math.h>
  9. #define FRAS2(is,a) ((is) > 0 ? t_43[(is)]*(a):-t_43[-(is)]*(a))
  10. #define MAXFRAMESIZE 2106 /* frame size starting at header */
  11. #define roundf(x) (floor((x)+(float )0.5f))