~smspillaz/compiz-core/compiz-core.fix_898469

« back to all changes in this revision

Viewing changes to plugins/screenshot/src/screenshot.cpp

Merged compiz-core.fix_898465 into compiz-core.fix_898469.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include "screenshot.h"
27
27
 
 
28
#include <dirent.h>
 
29
 
 
30
#if defined(HAVE_SCANDIR_POSIX)
 
31
  // POSIX (2008) defines the comparison function like this:
 
32
  #define scandir(a,b,c,d) scandir((a), (b), (c), (int(*)(const dirent **, const dirent **))(d));
 
33
#else
 
34
  #define scandir(a,b,c,d) scandir((a), (b), (c), (int(*)(const void*,const void*))(d));
 
35
#endif
 
36
 
 
37
 
 
38
 
28
39
COMPIZ_PLUGIN_20090315 (screenshot, ShotPluginVTable)
29
40
 
30
41
bool