opnsense-ports/graphics/pfstools/files/patch-src-fileformat-ppmio.cpp
Franco Fichtner 8758ae3186 */*: sync with upstream
Taken from: FreeBSD
2016-02-15 04:34:34 +01:00

11 lines
240 B
C++

--- src/fileformat/ppmio.cpp.orig 2009-05-25 19:24:49 UTC
+++ src/fileformat/ppmio.cpp
@@ -34,6 +34,8 @@ extern "C" {
#include <math.h>
#include <assert.h>
+#define log2(x) ((float)log(x)/log(2))
+
struct PPMData
{
pixval maxPV;