[Libreoffice-commits] .: unodevtools/source

Julien Nabet serval2412 at kemper.freedesktop.org
Thu Apr 21 06:19:58 PDT 2011


 unodevtools/source/skeletonmaker/cppcompskeleton.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b3084b9999c63a958bf3eb4578625f5c0d601fba
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Thu Apr 21 15:14:11 2011 +0200

    Easyhack: Add visibility markup to all component_get* functions

diff --git a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
index a3ce7d5..f20fa49 100644
--- a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
+++ b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
@@ -194,11 +194,11 @@ void generateCompFunctions(std::ostream & o, const OString & nmspace)
       << "      &::cppu::createSingleComponentFactory, 0, 0 },\n"
       << "    { 0, 0, 0, 0, 0, 0 }\n};\n\n";
 
-    o << "extern \"C\" void SAL_CALL component_getImplementationEnvironment(\n"
+    o << "extern \"C\" SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(\n"
       << "    const char ** envTypeName, uno_Environment **)\n{\n"
       << "    *envTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;\n}\n\n";
 
-    o << "extern \"C\" void * SAL_CALL component_getFactory(\n"
+    o << "extern \"C\" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(\n"
       << "    const char * implName, void * serviceManager, void * registryKey)\n{\n"
       << "    return ::cppu::component_getFactoryHelper(\n"
       << "        implName, serviceManager, registryKey, entries);\n}\n\n";


More information about the Libreoffice-commits mailing list