summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R. Fisher <mfisher@bketech.com>2013-07-15 16:53:55 -0500
committerMichael Fisher <mfisher31@gmail.com>2013-07-15 22:57:35 -0500
commit066df0d218ee4391eb3e15259deca5ccc190ed84 (patch)
tree23006dac282f985256dc74ffd9108817f8865c52
parentfa1086d82d497d61140bb164abd7b9c94d1a9d28 (diff)
Temporary OSX/Clang/C++11 workaround
- Adds a directive that includes <vector> upon specific conditions - WIP
-rw-r--r--libs/pbd/pbd/stl_delete.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/pbd/pbd/stl_delete.h b/libs/pbd/pbd/stl_delete.h
index 66fb027387..ac2161560c 100644
--- a/libs/pbd/pbd/stl_delete.h
+++ b/libs/pbd/pbd/stl_delete.h
@@ -20,11 +20,19 @@
#ifndef __libmisc_stl_delete_h__
#define __libmisc_stl_delete_h__
+
+#if __clang__ && __APPLE__ && __cplusplus >= 201103L
+#include <vector>
+#ifndef _CPP_VECTOR
+#define _CPP_VECTOR
+#endif
+#endif
+
/* To actually use any of these deletion functions, you need to
first include the revelant container type header.
*/
#if defined(_CPP_VECTOR) || defined(_GLIBCXX_VECTOR) || defined(__SGI_STL_VECTOR)
-template<class T> void vector_delete (std::vector<T *> *vec)
+template<class T> void vector_delete (std::vector<T *> *vec)
{
typename std::vector<T *>::iterator i;