Skip to content
Snippets Groups Projects
Commit add7b3bc authored by Derek Buitenhuis's avatar Derek Buitenhuis
Browse files

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: default avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent 9e02f35f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment