]> granicus.if.org Git - libjpeg-turbo/commitdiff
Fix the Windows build. I remember now why I used putenv() originally-- because Windo...
authorDRC <dcommander@users.sourceforge.net>
Sat, 16 May 2015 04:18:21 +0000 (04:18 +0000)
committerDRC <dcommander@users.sourceforge.net>
Sat, 16 May 2015 04:18:21 +0000 (04:18 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1555 632fc199-4ca6-4c93-a231-07263d6284db

turbojpeg.c

index 4442503f2526550e4b4d5b308c14e73d9c9cee85..de0c88b80dc15a1ebedfac0781a5eb3ebdf315d6 100644 (file)
 #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);