aboutsummaryrefslogtreecommitdiff
path: root/sfread2~.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-07-11 16:40:24 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-07-11 16:40:24 +0000
commit3cc282dcc13295ec6e0cca8ffcf9f78784f09733 (patch)
tree5e62776207373ed1f2428c4745cc7d49637f1cc7 /sfread2~.c
parentd072e37faab2a7253f14165c38c7220dfc3f7685 (diff)
got the lib to compile on MinGW by ifdeffing out the failing objects. These could be ported pretty easily since it's just a question of the open() function, I think. But it's really old, funky code, so why?
svn path=/trunk/externals/moonlib/; revision=8005
Diffstat (limited to 'sfread2~.c')
-rw-r--r--sfread2~.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sfread2~.c b/sfread2~.c
index aceb39e..c4d7653 100644
--- a/sfread2~.c
+++ b/sfread2~.c
@@ -1,14 +1,16 @@
+#ifndef _WIN32
+
#include <m_pd.h>
//#include <m_imp.h>
#include "g_canvas.h"
-#ifdef NT
+#ifdef _MSC_VER
#pragma warning( disable : 4244 )
#pragma warning( disable : 4305 )
#endif
#include <stdio.h>
#include <string.h>
-#ifndef NT
+#ifndef _WIN32
#include <unistd.h>
#include <sys/mman.h>
#else
@@ -21,7 +23,7 @@
/* ------------------------ sfread~ ----------------------------- */
-#ifdef NT
+#ifdef _WIN32
#define BINREADMODE "rb"
#else
#define BINREADMODE "r"
@@ -407,4 +409,5 @@ void sfread2_tilde_setup(void)
+#endif /* NOT _WIN32 */