summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-14 12:02:05 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-14 12:02:05 +0000
commit138a65d6c143427755d49ec32fe43f17a3e6c8b6 (patch)
tree99ee2035e2a23624ee15dbe5a4bea263833941d6 /src/lib
parent9d0bdf69e5b960ce817c4e63420468f3d542f296 (diff)
[trunk] Move INLINE definition within openjpeg.h header since application may use it
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/openjp2/openjpeg.h17
-rw-r--r--src/lib/openjp2/opj_includes.h16
2 files changed, 17 insertions, 16 deletions
diff --git a/src/lib/openjp2/openjpeg.h b/src/lib/openjp2/openjpeg.h
index d3339954..59a1cdc4 100644
--- a/src/lib/openjp2/openjpeg.h
+++ b/src/lib/openjp2/openjpeg.h
@@ -43,6 +43,23 @@
==========================================================
*/
+/*
+The inline keyword is supported by C99 but not by C90.
+Most compilers implement their own version of this keyword ...
+*/
+#ifndef INLINE
+ #if defined(_MSC_VER)
+ #define INLINE __forceinline
+ #elif defined(__GNUC__)
+ #define INLINE __inline__
+ #elif defined(__MWERKS__)
+ #define INLINE inline
+ #else
+ /* add other compilers here ... */
+ #define INLINE
+ #endif /* defined(<Compiler>) */
+#endif /* INLINE */
+
/* deprecated attribute */
#ifdef __GNUC__
#define OPJ_DEPRECATED(func) func __attribute__ ((deprecated))
diff --git a/src/lib/openjp2/opj_includes.h b/src/lib/openjp2/opj_includes.h
index 8b072c58..76380962 100644
--- a/src/lib/openjp2/opj_includes.h
+++ b/src/lib/openjp2/opj_includes.h
@@ -102,22 +102,6 @@
#define __attribute__(x) /* __attribute__(x) */
#endif
-/*
-The inline keyword is supported by C99 but not by C90.
-Most compilers implement their own version of this keyword ...
-*/
-#ifndef INLINE
- #if defined(_MSC_VER)
- #define INLINE __forceinline
- #elif defined(__GNUC__)
- #define INLINE __inline__
- #elif defined(__MWERKS__)
- #define INLINE inline
- #else
- /* add other compilers here ... */
- #define INLINE
- #endif /* defined(<Compiler>) */
-#endif /* INLINE */
/* Are restricted pointers available? (C99) */
#if (__STDC_VERSION__ != 199901L)