Mercurial > hg > xemacs-beta
comparison src/nas.c @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | 30d2cfa1092a |
children | a300bb07d72d |
comparison
equal
deleted
inserted
replaced
370:bd866891f083 | 371:cc15677e0335 |
---|---|
52 */ | 52 */ |
53 | 53 |
54 #ifdef emacs | 54 #ifdef emacs |
55 #include <config.h> | 55 #include <config.h> |
56 #include "lisp.h" | 56 #include "lisp.h" |
57 #include "sysdep.h" /* for (start|stop)_interrupts */ | |
58 #include "syssignal.h" | |
59 #endif | 57 #endif |
60 | 58 |
61 #if __STDC__ || defined (STDC_HEADERS) | 59 #if __STDC__ || defined (STDC_HEADERS) |
62 # include <stdlib.h> | 60 # include <stdlib.h> |
63 # include <stdarg.h> | 61 # include <stdarg.h> |
67 #ifdef HAVE_UNISTD_H | 65 #ifdef HAVE_UNISTD_H |
68 #include <unistd.h> | 66 #include <unistd.h> |
69 #endif | 67 #endif |
70 | 68 |
71 #include <stdio.h> | 69 #include <stdio.h> |
72 | 70 #include "syssignal.h" |
73 /* NAS 1.2p5 and previous define these in conflict with GNU libc (at least) */ | 71 |
74 #ifndef NAS_USES_OWN_NAMESPACE | |
75 #undef LITTLE_ENDIAN | 72 #undef LITTLE_ENDIAN |
76 #undef BIG_ENDIAN | 73 #undef BIG_ENDIAN |
77 #endif | |
78 | |
79 #include <audio/audiolib.h> | 74 #include <audio/audiolib.h> |
80 #include <audio/soundlib.h> | 75 #include <audio/soundlib.h> |
81 #include <audio/snd.h> | 76 #include <audio/snd.h> |
82 #include <audio/fileutil.h> | 77 #include <audio/fileutil.h> |
83 | |
84 /* If needed (NAS <= 1.2p5) define the NAS_ versions of *_ENDIAN */ | |
85 #ifndef NAS_USES_OWN_NAMESPACE | |
86 #define NAS_LITTLE_ENDIAN LITTLE_ENDIAN | |
87 #define NAS_BIG_ENDIAN BIG_ENDIAN | |
88 #endif | |
89 | 78 |
90 #ifdef emacs | 79 #ifdef emacs |
91 | 80 |
92 # define XTOOLKIT | 81 # define XTOOLKIT |
93 # define XTEVENTS | 82 # define XTEVENTS |
675 si->comment = NULL; | 664 si->comment = NULL; |
676 si->writing = 0; | 665 si->writing = 0; |
677 | 666 |
678 memcpy (&si->h, data, sizeof (SndHeader)); | 667 memcpy (&si->h, data, sizeof (SndHeader)); |
679 | 668 |
680 if (NAS_LITTLE_ENDIAN) | 669 if (LITTLE_ENDIAN) |
681 { | 670 { |
682 char n; | 671 char n; |
683 | 672 |
684 swapl (&si->h.magic, n); | 673 swapl (&si->h.magic, n); |
685 swapl (&si->h.dataOffset, n); | 674 swapl (&si->h.dataOffset, n); |