diff --git a/src/plugins/qmlprofiler/qmlprofiler.pro b/src/plugins/qmlprofiler/qmlprofiler.pro
index 8c98eb2c5324893b95ab11f8aa4917d76f0ee498..e4c848e312f9e444f241052c2c958ab3f29a5e07 100644
--- a/src/plugins/qmlprofiler/qmlprofiler.pro
+++ b/src/plugins/qmlprofiler/qmlprofiler.pro
@@ -1,7 +1,7 @@
 TEMPLATE = lib
 TARGET = QmlProfiler
 
-DEFINES += PROFILER_LIBRARY
+DEFINES += QMLPROFILER_LIBRARY
 
 QT += network script
 greaterThan(QT_MAJOR_VERSION, 4) {
diff --git a/src/plugins/qmlprofiler/qmlprofiler_global.h b/src/plugins/qmlprofiler/qmlprofiler_global.h
index 9787f0534f8e0ab6f923fe2fcf7baf28c9ce01ba..2b0ac5edecba851270d87dd016dd79466f8bab61 100644
--- a/src/plugins/qmlprofiler/qmlprofiler_global.h
+++ b/src/plugins/qmlprofiler/qmlprofiler_global.h
@@ -33,10 +33,10 @@
 
 #include <QtGlobal>
 
-#if defined(QMLPROFILERPLUGIN_LIBRARY)
-#  define QMLPROFILERPLUGINSHARED_EXPORT Q_DECL_EXPORT
+#if defined(QMLPROFILER_LIBRARY)
+#  define QMLPROFILER_EXPORT Q_DECL_EXPORT
 #else
-#  define QMLPROFILERPLUGINSHARED_EXPORT Q_DECL_IMPORT
+#  define QMLPROFILER_EXPORT Q_DECL_IMPORT
 #endif
 
 #endif // QMLPROFILER_GLOBAL_H