Mercurial > hg > xemacs-beta
comparison src/sunplay.c @ 272:c5d627a313b1 r21-0b34
Import from CVS: tag r21-0b34
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:28:48 +0200 |
parents | 3d6bfa290dbd |
children | 8626e4521993 |
comparison
equal
deleted
inserted
replaced
271:c7b7086b0a39 | 272:c5d627a313b1 |
---|---|
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 | 36 /* libaudio.h includes a header which defines CONST. We temporarily |
37 undefine it in order to eliminate a compiler warning. Yes, this is | 37 undefine it in order to eliminate a compiler warning. Yes, this is |
38 a hack. */ | 38 a gross hack. */ |
39 #undef CONST | 39 #undef CONST |
40 #include <multimedia/libaudio.h> | 40 #include <multimedia/libaudio.h> |
41 #include <multimedia/audio_device.h> | 41 #include <multimedia/audio_device.h> |
42 | |
43 #undef CONST | 42 #undef CONST |
44 #ifdef CONST_IS_LOSING | 43 #define CONST const |
45 # define CONST | |
46 #else | |
47 # define CONST const | |
48 #endif /* CONST */ | |
49 | 44 |
50 #ifdef emacs | 45 #ifdef emacs |
51 # include <config.h> | 46 # include <config.h> |
52 # include "lisp.h" | 47 # include "lisp.h" |
53 # include "sysdep.h" | 48 # include "sysdep.h" |
54 # include "emacsfns.h" | |
55 # include <errno.h> | 49 # include <errno.h> |
56 #include "syssignal.h" | 50 #include "syssignal.h" |
57 # define perror(string) \ | 51 # define perror(string) \ |
58 message("audio: %s, %s ", string, strerror (errno)) | 52 message("audio: %s, %s ", string, strerror (errno)) |
59 # define warn(str) message ("audio: %s ", GETTEXT (str)) | 53 # define warn(str) message ("audio: %s ", GETTEXT (str)) |