X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tjbench.c;h=46e0e9dfed5c917011c97b264dba07c92ef816bc;hb=cea1b4e5edf97e19879a1dd87a373d39c8f1c3c7;hp=863e534f9cb4e218fa81c17c1cc1f6dba77af06f;hpb=aea13244b28b72cdf9dddfd20feaa565d43bfe3c;p=platform%2Fupstream%2Flibjpeg-turbo.git diff --git a/tjbench.c b/tjbench.c index 863e534..46e0e9d 100644 --- a/tjbench.c +++ b/tjbench.c @@ -41,7 +41,16 @@ printf("ERROR in line %d while %s:\n%s\n", __LINE__, op, err); \ retval = -1; goto bailout; \ } + +#if _USE_PRODUCT_TV +#define _throwunix(m) { \ + char err_str[256]; \ + strerror_r(errno, err_str, 256); \ + _throw(m, err_str) \ +} +#else #define _throwunix(m) _throw(m, strerror(errno)) +#endif char tjErrorStr[JMSG_LENGTH_MAX] = "\0", tjErrorMsg[JMSG_LENGTH_MAX] = "\0"; int tjErrorLine = -1, tjErrorCode = -1;