Browse Source

Merge pull request #1244 from BruegelN/update-IGL_DEPRECATED-for-clang

update IGL_DEPRECATED to handle clang (e.g. on macOS) as well.
Jérémie Dumas 6 years ago
parent
commit
31c4eb24d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/deprecated.h

+ 1 - 1
include/igl/deprecated.h

@@ -10,7 +10,7 @@
 // Macro for marking a function as deprecated.
 // Macro for marking a function as deprecated.
 // 
 // 
 // http://stackoverflow.com/a/295229/148668
 // http://stackoverflow.com/a/295229/148668
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
 #define IGL_DEPRECATED(func) func __attribute__ ((deprecated))
 #define IGL_DEPRECATED(func) func __attribute__ ((deprecated))
 #elif defined(_MSC_VER)
 #elif defined(_MSC_VER)
 #define IGL_DEPRECATED(func) __declspec(deprecated) func
 #define IGL_DEPRECATED(func) __declspec(deprecated) func