* config/i386/gmm_malloc.h: Only use <errno.h> and errno if
__STDC_HOSTED__.
From-SVN: r274915
+2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
+
+ * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
+ __STDC_HOSTED__.
+
2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
* config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
#define _MM_MALLOC_H_INCLUDED
#include <stdlib.h>
+#if __STDC_HOSTED__
#include <errno.h>
+#endif
static __inline__ void *
_mm_malloc (size_t __size, size_t __align)
/* Error if align is not a power of two. */
if (__align & (__align - 1))
{
+#if __STDC_HOSTED__
errno = EINVAL;
+#endif
return ((void *) 0);
}