]> Creatis software - gdcm.git/blobdiff - src/gdcmopenjpeg/libopenjpeg/opj_includes.h
Fix error message
[gdcm.git] / src / gdcmopenjpeg / libopenjpeg / opj_includes.h
index 565131eebaa48476a29ad1c9940940d7010b31b0..13240323cc9f30901c5005acf3d5fcba9f0ef2fd 100644 (file)
  ==========================================================
 */
 
+/*
+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 __inline
+  #elif defined(__GNUC__)
+    #define INLINE __inline__
+  #elif defined(__MWERKS__)
+    #define INLINE inline
+  #else 
+    /* add other compilers here ... */
+    #define INLINE 
+  #endif /* defined(<Compiler>) */
+#endif /* INLINE */
+
 #include "j2k_lib.h"
 #include "event.h"
 #include "cio.h"