Tier 1 decoding: add a colflags array
[openjpeg.git] / src / lib / openjp2 / opj_includes.h
index f855b7c6694045ebb1108a188971fa28e6d00f0e..58a5a9a9ac070eca5c6d4ca901b20718ad9fc0d7 100644 (file)
  ==========================================================
 */
 
-/* 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 */
        #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 */