aboutsummaryrefslogtreecommitdiff
path: root/playlist
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-18 18:57:13 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-18 18:57:13 +0000
commitaa82236dd093743bd2973f8b61127582aaf6e96f (patch)
treedc74f2de6e61dc04861b8d6df53daf8ed6feb2ee /playlist
parentb13e2d6c3a525918ed0816c41433509477c9912a (diff)
lots of MinGW fixes for RC6
svn path=/trunk/externals/unauthorized/; revision=4250
Diffstat (limited to 'playlist')
-rw-r--r--playlist/playlist.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/playlist/playlist.c b/playlist/playlist.c
index d8f7791..b6dde1d 100644
--- a/playlist/playlist.c
+++ b/playlist/playlist.c
@@ -29,6 +29,8 @@
/* Gang Of Four -- Guns Before Butter */
/* ---------------------------------------------------------------------------- */
+#ifndef _WIN32 /* this object doesn't compile on Windows because of alphasort() */
+
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
@@ -42,11 +44,15 @@
#include "g_canvas.h"
#include "t_tk.h"
-#ifdef NT
+#ifdef _WIN32
#include <io.h>
+#include <pthread.h>
#else
#include <unistd.h>
#include <sys/types.h>
+#endif
+
+#ifndef _MSC_VER
#include <dirent.h>
#endif
@@ -1017,3 +1023,5 @@ void playlist_setup(void)
class_setwidget(playlist_class, &playlist_widgetbehavior);
class_sethelpsymbol(playlist_class, gensym("playlist.pd"));
}
+
+#endif /* not _WIN32 */