diff Core/Enumerations.h @ 2487:be1dbb1dcdd6

PixelTraits and ImageTraits
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Mar 2018 16:29:20 +0100
parents ad8f30fc28d1
children 83b8b6743531
line wrap: on
line diff
--- a/Core/Enumerations.h	Wed Mar 07 15:46:47 2018 +0100
+++ b/Core/Enumerations.h	Tue Mar 13 16:29:20 2018 +0100
@@ -35,6 +35,16 @@
 
 #include <string>
 
+
+#if defined(_MSC_VER)
+#  define ORTHANC_FORCE_INLINE __forceinline
+#elif defined(__GNUC__) || defined(__clang__) || defined(__EMSCRIPTEN__)
+#  define ORTHANC_FORCE_INLINE inline __attribute((always_inline))
+#else
+#  error Please support your compiler here
+#endif
+
+
 namespace Orthanc
 {
   enum Endianness