The way I handled this was to create a define called HAVE_STUB_GETENV
(which is a really weird name in hindsight) in my config.h file. I then
just set that define, along with HAVE_INTEL_ATOMIC_PRIMITIVES, when
building for PS4.

I'm not sure if you'd want to take that into HarfBuzz proper, or whether
you'd want a better way?

#ifdef HAVE_STUB_GETENV
// Stub out getenv as not all platforms support it
#define getenv(name) 0
#endif // HAVE_STUB_GETENV

-Jamie.
<https://www.avast.com/lp-safe-emailing?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
This
email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/lp-safe-emailing?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On 15 December 2015 at 11:40, Behdad Esfahbod <behdad.esfah...@gmail.com>
wrote:

> On 15-12-13 09:33 PM, Jamie Dale wrote:
> > You'll need a define to stub out getenv for a PS4 build
>
> I'll take a patch to hb-private.hh to do that.
>
_______________________________________________
HarfBuzz mailing list
HarfBuzz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/harfbuzz

Reply via email to