]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Export symbols
authorabd <abd@opencascade.com>
Tue, 15 Aug 2006 13:17:08 +0000 (13:17 +0000)
committerabd <abd@opencascade.com>
Tue, 15 Aug 2006 13:17:08 +0000 (13:17 +0000)
src/SALOMETraceCollector/SALOMETraceCollector.cxx
src/SALOMETraceCollector/SALOMETraceCollector.hxx

index e1cab3182eea593ffbdd4ad3df20fb8d16ad25dd..408c56d879e9ee0874966f93fdc21e0f5a66b013 100644 (file)
@@ -67,7 +67,7 @@ BaseTraceCollector* SALOMETraceCollector::instance()
 
          sem_init(&_sem,0,0); // to wait until run thread is initialized
          pthread_t traceThread;
-         int bid;
+         int bid = 0;
          int re2 = pthread_create(&traceThread, NULL,
                                   SALOMETraceCollector::run, (void *)bid);
          sem_wait(&_sem);
@@ -217,6 +217,7 @@ SALOMETraceCollector::SALOMETraceCollector()
 
 extern "C"
 {
+ SALOMETRACECOLLECTOR_EXPORT
   BaseTraceCollector *SingletonInstance(void)
   {
     BaseTraceCollector *instance = SALOMETraceCollector::instance();
index c1258f63e3b2e77554f8667ba02e70e17fbcb868..58e069efd550beeb6a3abe6bcf06929be5754451 100644 (file)
 //! See LocalTraceCollector instead of SALOMETraceCollector,
 //! for usage without CORBA
 
-#if defined SALOMETRACECOLLECTOR_EXPORTS
-#if defined WIN32
-#define SALOMETRACECOLLECTOR_EXPORT __declspec( dllexport )
-#else
-#define SALOMETRACECOLLECTOR_EXPORT
-#endif
-#else
 #if defined WNT
-#define SALOMETRACECOLLECTOR_EXPORT __declspec( dllimport )
+# if defined SALOMETRACECOLLECTOR_EXPORTS
+#  define SALOMETRACECOLLECTOR_EXPORT __declspec( dllexport )
+# else
+#  define SALOMETRACECOLLECTOR_EXPORT
+# endif
 #else
-#define SALOMETRACECOLLECTOR_EXPORT
-#endif
+# define SALOMETRACECOLLECTOR_EXPORT
 #endif
 
 class SALOMETRACECOLLECTOR_EXPORT SALOMETraceCollector: