Skip to content

Commit 0da784f

Browse files
mflehmigadeas31
authored andcommitted
Fix compiling under Linux
Under linux, using both gcc and clang, a clash between the macro smooth defined in include/omc/c/openmodelica.h and the Qt function smooth defined in qt5/QtQuick/qquickitem.h Since we do not use smooth in either way in OMEdit, we undefine the macro.
1 parent c8fb556 commit 0da784f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

OMEdit/OMEditGUI/MainWindow.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#ifndef MAINWINDOW_H
3636
#define MAINWINDOW_H
3737

38+
#undef smooth
39+
3840
#include <QtGlobal>
3941
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
4042
#include <QtWidgets>

0 commit comments

Comments
 (0)