[AC_DEFINE(fdatasync, fsync, [Alias fdatasync() to fsync() if missing.])
])
+# Windows CE doesn't have strcoll()
+AC_FUNC_STRCOLL
+
dnl Check for non-standard system calls
AC_CHECK_FUNCS([accept4 dup3 eventfd vmsplice sched_getaffinity])
static int collate (const char **a, const char **b)
{
+#ifdef HAVE_STRCOLL
return strcoll (*a, *b);
+#else
+ return strcmp (*a, *b);
+#endif
}
/*****************************************************************************
/** **************************************************************************
* MONITORING AND DIRECTORY SCANNING FUNCTIONS
*****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#include "sql_media_library.h"
#include "vlc_playlist.h"
static int Sort( const char **a, const char **b )
{
+#ifdef HAVE_STRCOLL
return strcoll( *a, *b );
+#else
+ return strcmp( *a, *b );
+#endif
}
/**
if( p0->priority < p1->priority )
return 1;
-#ifndef UNDER_CE
+#ifdef HAVE_STRCOLL
return strcoll( p0->psz_fname, p1->psz_fname);
#else
return strcmp( p0->psz_fname, p1->psz_fname);