diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-06-09 12:17:03 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-06-09 12:17:03 +0000 |
commit | 036e1f6c55ca27059c9ece1a3e29e80523cb6a40 (patch) | |
tree | ccb7938f8ffd5da355709b3420923c901f551906 /src/sfplay.c | |
parent | e3c64e6123d6e9af2946fe1ddeb344fb9855fbd7 (diff) |
replaced MACOSX by __APPLE__
replaced NT by __WIN32__ (defined by mingw, but NOT by msvc)
svn path=/trunk/externals/zexy/; revision=3139
Diffstat (limited to 'src/sfplay.c')
-rw-r--r-- | src/sfplay.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/sfplay.c b/src/sfplay.c index a46c339..bdf4fc8 100644 --- a/src/sfplay.c +++ b/src/sfplay.c @@ -65,12 +65,6 @@ ritsch@iem.kug.ac.at */ #define DACBLKSIZE 64 /* in m_imp.h, but error if it is included it here*/ -#ifdef NT -#pragma warning( disable : 4244 ) -#pragma warning( disable : 4305 ) -#pragma warning( disable : 4018 ) -#endif - #include <stdio.h> #include <string.h> #include <fcntl.h> @@ -78,13 +72,13 @@ ritsch@iem.kug.ac.at */ /* ------------------------ sfplay ----------------------------- */ #define MAX_CHANS 8 /* channels for soundfiles 1,2,4,8 */ -#ifdef NT -#define BINREADMODE "rb" +#ifdef __WIN32__ +# define BINREADMODE "rb" #endif #ifdef unix -#include <unistd.h> -#include <sys/mman.h> -#define BINREADMODE "r" +# include <unistd.h> +# include <sys/mman.h> +# define BINREADMODE "r" #endif static t_class *sfplay_class; |