1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/graphics/photivo/files/patch-Sources_ptDefines.h
Alexey Dokuchaev 5349f4755a Add a port of Photivo, a free and open source photo processor.
Unfortunately, I had to deprive it from using OpenMP features, since
`compiler:openmp' pulls in GCC and libstdc++ which causes linking
problems due to incompatible std::string ABI.  Also, while Qt 4.x
should be supported, it does not build against, so sadly it's Qt 5.x
based only for now.

WWW: http://photivo.org/
2016-12-16 15:35:55 +00:00

21 lines
491 B
C++

--- Sources/ptDefines.h.orig 2016-03-22 03:34:55 UTC
+++ Sources/ptDefines.h
@@ -33,6 +33,8 @@
#define __STDC_LIMIT_MACROS
#include <cstdint>
+#include <cstdlib>
+
// disable the file manager
// #define PT_WITHOUT_FILEMGR
@@ -63,7 +65,7 @@ std::unique_ptr<T> make_unique(Args&& ..
namespace pt {
namespace detail {
struct c_deleter {
- void operator()(void* ptr) { std::free(ptr); }
+ void operator()(void* ptr) { free(ptr); }
};
}
template<typename T>