Skip to content

Commit bead281

Browse files
committed
fix -Wexpansion-to-defined
1 parent f1ce3f5 commit bead281

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

widgets/GraphicsItemRenderer.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
#include "QtAVWidgets/GraphicsItemRenderer.h"
2323
#include "QtAV/private/QPainterRenderer_p.h"
2424
#include "QtAV/FilterContext.h"
25-
#define QTAV_HAVE_OPENGL (!defined QT_NO_OPENGL && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) || defined(QT_OPENGL_LIB)))
25+
#if !defined QT_NO_OPENGL && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) || defined(QT_OPENGL_LIB))
26+
#define QTAV_HAVE_OPENGL 1
27+
#else
28+
#define QTAV_HAVE_OPENGL 0
29+
#endif
2630
#if QTAV_HAVE(OPENGL)
2731
#include "QtAV/OpenGLVideo.h"
2832
#else

0 commit comments

Comments
 (0)