*** ./src/common.h.ORIG Tue Dec 1 23:59:12 2009 --- ./src/common.h Wed Dec 2 00:02:50 2009 *************** *** 49,55 **** # error "Don't know how to define a 64 bit integer constant." #endif ! /* ** Inspiration : http://sourcefrog.net/weblog/software/languages/C/unused.html --- 49,58 ---- # error "Don't know how to define a 64 bit integer constant." #endif ! #ifdef _AIX51 ! #define lrint(dbl) ((long) (dbl)) ! #define lrintf(flt) ((long) (flt)) ! #endif /* ** Inspiration : http://sourcefrog.net/weblog/software/languages/C/unused.html *** ./regtest/checksum.c.ORIG Wed Dec 2 10:13:01 2009 --- ./regtest/checksum.c Wed Dec 2 10:14:13 2009 *************** *** 101,106 **** --- 101,111 ---- return start ; } /* int_checksum */ + #ifdef _AIX51 + #define lrint(dbl) ((long) (dbl)) + #define lrintf(flt) ((long) (flt)) + #endif + static int float_checksum (SNDFILE * file, int start) { int k, count ; *** ./tests/utils.h.ORIG Wed Dec 2 10:15:29 2009 --- ./tests/utils.h Wed Dec 2 10:15:45 2009 *************** *** 29,35 **** --- 29,37 ---- extern "C" { #endif /* __cplusplus */ + #ifndef _AIX #include + #endif #include #define SF_COUNT_TO_LONG(x) ((long) (x)) *** ./tests/dwvw_test.c.ORIG Wed Dec 2 10:29:02 2009 --- ./tests/dwvw_test.c Wed Dec 2 10:32:14 2009 *************** *** 36,41 **** --- 36,46 ---- #define M_PI 3.14159265358979323846264338 #endif + #ifdef _AIX51 + #define lrint(dbl) ((long) (dbl)) + #define lrintf(flt) ((long) (flt)) + #endif + static void dwvw_test (const char *filename, int format, int bit_width) ; int *** ./tests/lossy_comp_test.c.ORIG Wed Dec 2 10:29:08 2009 --- ./tests/lossy_comp_test.c Wed Dec 2 10:30:23 2009 *************** *** 40,45 **** --- 40,50 ---- #define LCT_MAX(x,y) ((x) > (y) ? (x) : (y)) + #ifdef _AIX51 + #define lrint(dbl) ((long) (dbl)) + #define lrintf(flt) ((long) (flt)) + #endif + static void lcomp_test_short (const char *filename, int filetype, int chan, double margin) ; static void lcomp_test_int (const char *filename, int filetype, int chan, double margin) ; static void lcomp_test_float (const char *filename, int filetype, int chan, double margin) ; *** ./tests/ogg_test.c.ORIG Wed Dec 2 10:29:12 2009 --- ./tests/ogg_test.c Wed Dec 2 10:30:37 2009 *************** *** 42,47 **** --- 42,52 ---- static BUFFER data_out ; static BUFFER data_in ; + #ifdef _AIX51 + #define lrint(dbl) ((long) (dbl)) + #define lrintf(flt) ((long) (flt)) + #endif + static void ogg_short_test (void) { const char * filename = "vorbis_short.oga" ; *** ./tests/pcm_test.c.ORIG Wed Dec 2 10:29:16 2009 --- ./tests/pcm_test.c Wed Dec 2 10:30:55 2009 *************** *** 33,38 **** --- 33,43 ---- #define BUFFER_SIZE (1<<12) + #ifdef _AIX51 + #define lrint(dbl) ((long) (dbl)) + #define lrintf(flt) ((long) (flt)) + #endif + static void lrintf_test (void) ; static void pcm_test_bits_8 (const char *filename, int filetype, uint64_t hash) ; *** ./tests/scale_clip_test.c.ORIG Wed Dec 2 10:29:21 2009 --- ./tests/scale_clip_test.c Wed Dec 2 10:31:04 2009 *************** *** 42,47 **** --- 42,51 ---- #define SINE_AMP 1.1 #define MAX_ERROR 0.0202 + #ifdef _AIX51 + #define lrint(dbl) ((long) (dbl)) + #define lrintf(flt) ((long) (flt)) + #endif static void flt_scale_clip_test_16 (const char *filename, int filetype, float maxval) ; static void flt_scale_clip_test_24 (const char *filename, int filetype, float maxval) ;