projects
/
platform
/
upstream
/
libjpeg-turbo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge upstream version 2.0.1 from upstream into tizen
[platform/upstream/libjpeg-turbo.git]
/
tjbench.c
diff --git
a/tjbench.c
b/tjbench.c
index
863e534
..
46e0e9d
100644
(file)
--- 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; \
}
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))
#define _throwunix(m) _throw(m, strerror(errno))
+#endif
char tjErrorStr[JMSG_LENGTH_MAX] = "\0", tjErrorMsg[JMSG_LENGTH_MAX] = "\0";
int tjErrorLine = -1, tjErrorCode = -1;
char tjErrorStr[JMSG_LENGTH_MAX] = "\0", tjErrorMsg[JMSG_LENGTH_MAX] = "\0";
int tjErrorLine = -1, tjErrorCode = -1;