]> git.buserror.net Git - polintos/scott/priv.git/blobdiff - idlcomp/languages/c++/interface-caller.cc
Some weak symbol usage, and some marshalling stuff.
[polintos/scott/priv.git] / idlcomp / languages / c++ / interface-caller.cc
index 2d8c51d4f91badc4a7e38d73ebf4a7a2923d13aa..0f0d139985d53d771ee143fe43fdc0f4a6a89298 100644 (file)
@@ -260,7 +260,8 @@ void CPPFile::output_internal(Interface *iface)
 
 void CPPFile::output_downcast_proto(Interface *iface, Interface *super)
 {
-       file << '\n' << indent << "static inline " << **iface->name << " downcast(";
+       file << '\n' << indent << "static __attribute__((weak)) inline "
+            << **iface->name << " downcast(";
        cpp_output_type(file, super, false, false);
        file << "oldptr);\n";
 }