]> granicus.if.org Git - taglib/commitdiff
We still need these includes
authorLukáš Lalinský <lalinsky@gmail.com>
Wed, 15 Jun 2011 06:08:03 +0000 (10:08 +0400)
committerLukáš Lalinský <lalinsky@gmail.com>
Fri, 17 Jun 2011 11:09:37 +0000 (15:09 +0400)
taglib/toolkit/tfile.cpp

index bb0261eae3a6df461a73a4d62414ae1090b803af..ae3eec1d959d15c3566aa31c6c1f415a56906794 100644 (file)
 
 #include <stdio.h>
 #include <string.h>
+#include <sys/stat.h>
+
+#ifdef _WIN32
+# include <wchar.h>
+# include <windows.h>
+# include <io.h>
+# define ftruncate _chsize
+#else
+# include <unistd.h>
+#endif
+
+#include <stdlib.h>
+
+#ifndef R_OK
+# define R_OK 4
+#endif
+#ifndef W_OK
+# define W_OK 2
+#endif
 
 using namespace TagLib;