~rsalveti/libjpeg-turbo/libjpeg-turbo-trunk

Viewing all changes in revision 1077.

  • Committer: dcommander
  • Date: 2015-05-16 04:17:05 UTC
  • Revision ID: svn-v4:632fc199-4ca6-4c93-a231-07263d6284db:trunk:1554
Fix the Windows build.  I remember now why I used putenv() originally-- because Windows doesn't have setenv().  We could use _putenv_s(), but older versions of MinGW don't have that either.  Fortunately, since all of the environment values we're setting in turbojpeg.c are static, we can just map setenv() to putenv() using a macro.  NOTE: we still have to use _putenv_s() in turbojpeg-jni.c, but at least people who may need to build with an older version of MinGW can still do so by disabling the Java build.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: