diff --git a/src/main.cpp b/src/main.cpp
index b17d203..ab8f089 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -31,7 +31,7 @@
 	#include <kaboutdata.h>
 #endif
 
-#if defined (Q_WS_MAC)
+#if defined (Q_OS_OSX)
         #include "kchmviewerapp.h"
 #else
         typedef QApplication  KchmviewerApp;
@@ -70,7 +70,7 @@ int main( int argc, char ** argv )
 	// Configuration
 	pConfig = new Config();
 
-#if !defined (WIN32) && !defined(Q_WS_MAC)
+#if !defined (WIN32)
 	if ( QDBusConnection::sessionBus().isConnected() )
 	{
 		if ( QDBusConnection::sessionBus().registerService(SERVICE_NAME) )
