Mercurial > hg > xemacs-beta
comparison src/sunplay.c @ 2:ac2d302a0011 r19-15b2
Import from CVS: tag r19-15b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:46:35 +0200 |
parents | 376386a54a3c |
children | 0293115a14e9 |
comparison
equal
deleted
inserted
replaced
1:c0c6a60d29db | 2:ac2d302a0011 |
---|---|
31 #include <sys/signal.h> | 31 #include <sys/signal.h> |
32 #endif | 32 #endif |
33 #include <sys/fcntl.h> | 33 #include <sys/fcntl.h> |
34 #include <sys/file.h> | 34 #include <sys/file.h> |
35 | 35 |
36 /* libaudio.h includes a header which defines CONST. We temporarily | |
37 undefine it in order to eliminate a compiler warning. Yes, this is | |
38 a hack. */ | |
39 #undef CONST | |
36 #include <multimedia/libaudio.h> | 40 #include <multimedia/libaudio.h> |
37 #include <multimedia/audio_device.h> | 41 #include <multimedia/audio_device.h> |
42 | |
43 #undef CONST | |
44 #ifdef CONST_IS_LOSING | |
45 # define CONST | |
46 #else | |
47 # define CONST const | |
48 #endif /* CONST */ | |
38 | 49 |
39 #if __STDC__ || defined(STDC_HEADERS) /* warning suppression */ | 50 #if __STDC__ || defined(STDC_HEADERS) /* warning suppression */ |
40 extern int audio__setplayhdr(); | 51 extern int audio__setplayhdr(); |
41 extern int audio__setgain(); | 52 extern int audio__setgain(); |
42 extern int audio__flush(); | 53 extern int audio__flush(); |
43 extern int audio_decode_filehdr(); | 54 extern int audio_decode_filehdr(); |
44 extern int audio_read_filehdr(); | 55 extern int audio_read_filehdr(); |
45 extern int audio_cmp_hdr(); | 56 extern int audio_cmp_hdr(); |
46 extern int audio_enc_to_str(); | 57 extern int audio_enc_to_str(); |
47 extern int audio_drain(); | 58 extern int audio_drain(); |
48 extern void usleep(); | |
49 #endif | 59 #endif |
50 | 60 |
51 | 61 |
52 #ifdef emacs | 62 #ifdef emacs |
53 # include <config.h> | 63 # include <config.h> |