Created attachment 133935 [details] [review] Fix cygwin build The attached patch fixes a build failure using cygwin 32-bit.
Created attachment 133936 [details] [review] fix cygwin warning Also fix a warning that I've only seen on cygwin.
For cmake we set all the cxx_flags in modules/PopplerMacros.cmake, move it there?
and also nullptr instead of NULL?
Created attachment 133937 [details] [review] fix cygwin warning v2 replace NULL with nullptr
Created attachment 133938 [details] [review] Fix cygwin build v2 moved -D_DEFAULT_SOURCE to PopplerMacros.cmake I'm not sure what the DEFAULT_COMPILE_WARNINGS_KDE is for but I suspect the "-D_XOPEN_SOURCE=600 -D_BSD_SOURCE" can be removed as they are deprecated by _DEFAULT_SOURCE. See https://lwn.net/Articles/590381/
Looks good to me, please push. Yes DEFAULT_COMPILE_WARNINGS_KDE needs removing, useful stuff needs to be moved up to DEFAULT_COMPILE_WARNINGS_YES and the rest just removed. But let's discuss that in the mailing list or in a different bug?
pushed
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.