blob: 14d8e66c4d75a04a5753d2be138699b2b6ae8c79 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- imageformats/pngencoder.cpp.orig 2021-02-01 18:41:51 UTC
+++ imageformats/pngencoder.cpp
@@ -17,11 +17,17 @@ along with this program. If not, see <http://www.gnu.
*/
#include "pngencoder.h"
+#ifdef __FreeBSD__
+#include <png.h>
+#else
#include <libpng/png.h>
+#endif
#include <stdexcept>
#include <vector>
#if __APPLE__
#include <machine/endian.h>
+#elif __FreeBSD__
+#include <sys/endian.h>
#else
#include <endian.h>
#endif
|