summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2009-08-01 12:39:09 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2009-08-02 02:10:32 +0200
commit304fc526542340bb9036b85b926b638fea778b4a (patch)
tree906b18564567c9e497807824b2465c03d8f75fa6 /include
parentaa1d560e85bd1e6be246f136d7af1d1012f0ce7e (diff)
downloadzcomp-304fc526542340bb9036b85b926b638fea778b4a.tar.gz
zcomp-304fc526542340bb9036b85b926b638fea778b4a.tar.bz2
Added support for posix 2008 scandir definition
Diffstat (limited to 'include')
-rw-r--r--include/compiz.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/compiz.h b/include/compiz.h
index ab1b5ca..b548c16 100644
--- a/include/compiz.h
+++ b/include/compiz.h
@@ -52,6 +52,13 @@
#define DEG2RAD (M_PI / 180.0f)
+#if defined(HAVE_SCANDIR_POSIX)
+ // POSIX (2008) defines the comparison function like this:
+ #define scandir(a,b,c,d) scandir((a), (b), (c), (int(*)(const dirent **, const dirent **))(d));
+#else
+ #define scandir(a,b,c,d) scandir((a), (b), (c), (int(*)(const void*,const void*))(d));
+#endif
+
typedef std::string CompString;
typedef std::list<CompString> CompStringList;