[config] Make HB_NO_ERRNO work with systems defining errno as a macro
This commit is contained in:
parent
ce11df1b5b
commit
e832dc4c64
|
@ -370,10 +370,12 @@ extern "C" void hb_free_impl(void *ptr);
|
||||||
#define getenv(Name) nullptr
|
#define getenv(Name) nullptr
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HB_NO_ERRNO
|
#ifndef HB_NO_ERRNO
|
||||||
static int errno = 0; /* Use something better? */
|
# include <errno.h>
|
||||||
#else
|
#else
|
||||||
#include <errno.h>
|
static int _hb_errno = 0; /* Use something better? */
|
||||||
|
# undef errno
|
||||||
|
# define errno _hb_errno
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_ATEXIT) && !defined(HB_USE_ATEXIT)
|
#if defined(HAVE_ATEXIT) && !defined(HB_USE_ATEXIT)
|
||||||
|
|
Loading…
Reference in New Issue