summaryrefslogtreecommitdiffstats
path: root/kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2015-07-08 23:17:54 +0200
committerSlávek Banko <[email protected]>2015-07-09 09:21:26 +0200
commitd457edb8e9adc208b76e526d875fc729494ce9c3 (patch)
treef297e19785a4010d705ce7518d525196350d3728 /kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c
parente9e345d94e06d3d692578a77af80b21d102c88ad (diff)
downloadlibksquirrel-d457edb8e9adc208b76e526d875fc729494ce9c3.tar.gz
libksquirrel-d457edb8e9adc208b76e526d875fc729494ce9c3.zip
Fix FTBFS on freebsd
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 7d97c1a5ed3cc47c38fca756081eb5c04e2d12e6)
Diffstat (limited to 'kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c')
-rw-r--r--kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c b/kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c
index c975892..c38c214 100644
--- a/kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c
+++ b/kernel/kls_ljpeg/ljpeg2ppm/ljpgtopnm.c
@@ -35,7 +35,10 @@
#include <stdio.h>
#include <stdlib.h>
+#if defined(_MSC_VER) && (defined(WIN32) || defined(_Windows) || \
+ defined(_WINDOWS) || defined(_WIN32) || defined(__WIN32__))
#include <malloc.h>
+#endif
#include <string.h>
#include "jpeg.h"
#include "mcu.h"