projects
/
openjpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tier 1 decoding: add a colflags array
[openjpeg.git]
/
src
/
lib
/
openjp2
/
opj_includes.h
diff --git
a/src/lib/openjp2/opj_includes.h
b/src/lib/openjp2/opj_includes.h
index f855b7c6694045ebb1108a188971fa28e6d00f0e..58a5a9a9ac070eca5c6d4ca901b20718ad9fc0d7 100644
(file)
--- a/
src/lib/openjp2/opj_includes.h
+++ b/
src/lib/openjp2/opj_includes.h
@@
-102,12
+102,6
@@
==========================================================
*/
==========================================================
*/
-/* Ignore GCC attributes if this is not GCC */
-#ifndef __GNUC__
- #define __attribute__(x) /* __attribute__(x) */
-#endif
-
-
/* Are restricted pointers available? (C99) */
#if (__STDC_VERSION__ != 199901L)
/* Not a C99 compiler */
/* Are restricted pointers available? (C99) */
#if (__STDC_VERSION__ != 199901L)
/* Not a C99 compiler */
@@
-118,6
+112,14
@@
#endif
#endif
#endif
#endif
+#ifdef __has_attribute
+ #if __has_attribute(no_sanitize)
+ #define OPJ_NOSANITIZE(kind) __attribute__((no_sanitize(kind)))
+ #endif
+#endif
+#ifndef OPJ_NOSANITIZE
+ #define OPJ_NOSANITIZE(kind)
+#endif
/* MSVC before 2013 and Borland C do not have lrintf */
/* MSVC before 2013 and Borland C do not have lrintf */