aboutsummaryrefslogtreecommitdiffstats
path: root/packages/webkit/files/qt-api-changes.diff
blob: 16f448b01780ec88dfc800d1f8b68d05a39b2e6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Index: WebKit/qt/Api/qwebkitglobal.h
===================================================================
--- WebKit/qt/Api/qwebkitglobal.h	(revision 26079)
+++ WebKit/qt/Api/qwebkitglobal.h	(working copy)
@@ -25,15 +25,13 @@
 #include <qglobal.h>
 
 #if defined(Q_OS_WIN)
-#    if defined(BUILD_WEBKIT)
-#        define QWEBKIT_EXPORT Q_DECL_EXPORT
-#    else
-#        define QWEBKIT_EXPORT Q_DECL_IMPORT
-#    endif
+    #ifdef BUILD_WEBKIT
+        #define QWEBKIT_EXPORT __declspec(dllexport)
+    #else
+        #define QWEBKIT_EXPORT __declspec(dllimport)
+    #endif
+#else
+    #define QWEBKIT_EXPORT __attribute__((visibility("default")))
 #endif
 
-#if !defined(QWEBKIT_EXPORT)
-#define QWEBKIT_EXPORT Q_DECL_EXPORT
-#endif
-
 #endif // QWEBKITGLOBAL_H