Skip to content

Commit

Permalink
fix QTAV_HAVE() warning -Wexpansion-to-defined
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Mar 6, 2018
1 parent 629b0a6 commit 1ad00bf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/QtAV/QtAV_Global.h
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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1ad00bf

Please sign in to comment.