- sdl is now default output
[enigma2.git] / lib / base / smartptr.h
index 906bba69e8fb49922f033977a7278b15b6c6c72d..159eeb2c0122ff43fa16786fb7dd787c20eaeb62 100644 (file)
@@ -4,6 +4,14 @@
 #include "object.h"
 #include <stdio.h>
 
+#ifdef SWIG
+#define TEMPLATE_TYPEDEF(x, y) \
+%template(y) x; \
+typedef x y
+#else
+#define TEMPLATE_TYPEDEF(x, y) typedef x y
+#endif
+
 template<class T>
 class ePtr
 {