utils: Do not expand a macro with 'defined' in it
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Thu, 24 Aug 2017 20:00:01 +0000 (21:00 +0100)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Fri, 25 Aug 2017 12:44:57 +0000 (13:44 +0100)
commitadd7b3bc3fb7685cd0a3ccffd2b09cc0e32c39ec
tree286730962b85046b0675fcfe0b53afc14c825b2b
parent9e02f35f6a1b27090fa2679e9a3897ecdf144b2a
utils: Do not expand a macro with 'defined' in it

Fixes:

    libswscale/utils.c:1632:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
    #if USE_MMAP
        ^
    libswscale/utils.c:1577:49: note: expanded from macro 'USE_MMAP'
    #define USE_MMAP (HAVE_MMAP && HAVE_MPROTECT && defined MAP_ANONYMOUS)
                                                    ^
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libswscale/utils.c