armcc compatibility, don't use EINTR if doesn't exist

Fixes #1081
pull/1082/head
Ebrahim Byagowi 6 years ago committed by GitHub
parent 8a51f91b70
commit 25970a93aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/hb-blob.cc

@ -617,7 +617,9 @@ fail_without_close:
unsigned long addition = fread (data + len, 1, allocated - len, fp);
int err = ferror (fp);
#ifdef EINTR // armcc doesn't have it
if (unlikely (err == EINTR)) continue;
#endif
if (unlikely (err)) goto fread_fail;
len += addition;

Loading…
Cancel
Save