[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdecore
From:       Dirk Mueller <mueller () kde ! org>
Date:       2003-01-31 19:42:38
[Download RAW message or body]

CVS commit by mueller: 

KDE_EXPORT / KDE_NO_EXPORT macro's for controlling which symbols should be
exported in libraries.


  M +9 -1      kglobal.h   1.45


--- kdelibs/kdecore/kglobal.h  #1.44:1.45
@@ -189,4 +189,12 @@ template<class T>
 inline T kAbs (const T& a) { return a < 0 ? -a : a; }
 
+#if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 > 2)
+#define KDE_NO_EXPORT __attribute__ ((visibility("hidden")))
+#define KDE_EXPORT __attribute__ ((visibility("visible")))
+#else
+#define KDE_NO_EXPORT
+#define KDE_EXPORT
+#endif
+
 /**
  * @libdoc The KDE Core Functionality Library


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic