]> git.lyx.org Git - lyx.git/blobdiff - src/support/shared_ptr.h
add generic helper class for calling functions in gui thread
[lyx.git] / src / support / shared_ptr.h
index a671211a5cfb07413974a8b570c8e2a8ceeaf72c..28ac3d7a2357a8f7d216313eb47254c8f60e72ca 100644 (file)
 #ifndef LYX_SHARED_PTR_H
 #define LYX_SHARED_PTR_H
 
-#if defined(_MSC_VER) && (_MSC_VER >= 1600)
+#ifdef LYX_USE_TR1
 
 #include <memory>
 
+#ifdef __GNUC__
+#include <tr1/memory>
+#endif
+
 namespace lyx
 {
        using std::tr1::shared_ptr;