Salome HOME
Patch for MacOS (from SALOME forum)
[modules/gui.git] / src / SVTK / SVTK_RenderWindowInteractor.h
index 521794f67f0a40a2fc4bd820269057240f509d8b..e04a2edbfd9d48bd08df692566afbf527d79a27e 100644 (file)
@@ -124,9 +124,9 @@ class SVTK_EXPORT QVTK_RenderWindowInteractor: public QWidget
   //! To handle native events (from such devices as SpaceMouse)
 // TODO (QT5 PORTING) Below is a temporary solution, to allow compiling with Qt 5
 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
-#ifdef WIN32
+#if defined(WIN32)
   virtual bool winEvent( MSG*, long* );
-#else
+#elif !defined(__APPLE__)
   virtual bool x11Event( XEvent *e );
 #endif
 #else