On Tue, Apr 14, 2015 at 07:20:50PM +0100, Ben Avison wrote: > On Tue, 14 Apr 2015 11:28:51 +0100, Pekka Paalanen <ppaala...@gmail.com> > wrote: > >you asked about reading the cache sizes; I have no idea about that. > > > >>+#define PAGE_SIZE (4 * 1024) > > > >Hm, sysconf(3) has PAGESIZE query, but I don't know if it is > >appropriate here. I also tend to forget that Windows might be relevant > >for Pixman. > > I see the front page of http://www.pixman.org/ says "many platforms, > including Linux, BSD Derivatives, MacOS X, and Windows" so I expect it > would be a requirement, yes.
How about using GetSystemInfo on windows and sysconf on the other platforms? -- Len Sorensen _______________________________________________ Pixman mailing list Pixman@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/pixman