Menu

#86 turbo jpeg is not compiled when no getenv/putenv functions

closed-fixed
nobody
None
1
2015-02-23
2015-02-18
No

turbo jpeg is not compiled when no getenv/putenv functions. Jpeglib has macro NO_GETENV but it is not used in turbojpeg

Discussion

  • David Hoerl

    David Hoerl - 2015-02-18

    One of those causes issues for iOS, so I'd second the usefulness of having some way to not need them.

     
  • DRC

    DRC - 2015-02-18

    Can the original poster clarify which O/S this is happening on? Because AFAIK, getenv() is available everywhere, including iOS (I test libjpeg-turbo using a jailbreak environment.)

    Shorter response: please give me details as to how to reproduce the failure.

     
  • Sergey Solozhentsev

    Windows Phone 8.1

     
  • DRC

    DRC - 2015-02-23

    Where do you normally define NO_GETENV to make the code build? Our build system doesn't define it anywhere, so if you're adding it to one of the headers, I need to know which one so I can be sure to include it from turbojpeg.c as well.

     
  • Sergey Solozhentsev

    I added it to compilation flags

     
  • DRC

    DRC - 2015-02-23

    Fixed in trunk and branches/1.4.x

     
  • DRC

    DRC - 2015-02-23
    • status: open --> closed-fixed