diff --git a/turbojpeg.c b/turbojpeg.c index 4442503f..de0c88b8 100644 --- a/turbojpeg.c +++ b/turbojpeg.c @@ -42,6 +42,10 @@ #include "transupp.h" #include "./jpegcomp.h" +#ifdef _WIN32 +#define setenv(envvar, value, dummy) putenv(envvar"="value) +#endif + extern void jpeg_mem_dest_tj(j_compress_ptr, unsigned char **, unsigned long *, boolean); extern void jpeg_mem_src_tj(j_decompress_ptr, unsigned char *, unsigned long);