forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix QTAV_HAVE() warning -Wexpansion-to-defined
- Loading branch information
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/****************************************************************************** | ||
QtAV: Multimedia framework based on Qt and FFmpeg | ||
Copyright (C) 2012-2016 Wang Bin <[email protected]> | ||
Copyright (C) 2012-2018 Wang Bin <[email protected]> | ||
* This file is part of QtAV | ||
|
@@ -168,11 +168,9 @@ Q_DECLARE_METATYPE(QtAV::MediaEndAction) | |
#ifndef QByteArrayLiteral | ||
#define QByteArrayLiteral(str) QByteArray(str, sizeof(str) - 1) | ||
#endif | ||
/* | ||
* msvc sucks! can not deal with (defined(QTAV_HAVE_##FEATURE) && QTAV_HAVE_##FEATURE) | ||
*/ | ||
|
||
// TODO: internal use. move to a private header | ||
#define QTAV_HAVE(FEATURE) (defined QTAV_HAVE_##FEATURE && QTAV_HAVE_##FEATURE) | ||
#define QTAV_HAVE(FEATURE) (QTAV_HAVE_##FEATURE+0) | ||
|
||
#ifndef Q_DECL_OVERRIDE | ||
#define Q_DECL_OVERRIDE | ||
|