wpe: Fix build with -Werror enabled
authorPhilippe Normand <philn@igalia.com>
Wed, 5 Jun 2019 11:47:16 +0000 (12:47 +0100)
committerPhilippe Normand <philn@igalia.com>
Wed, 5 Jun 2019 11:47:16 +0000 (12:47 +0100)
commit5105bc804154144d94bc91a8a912bf1a491270ae
tree0dfa30c308833ea4a96e8c2c7fcdfcaf4f913472
parent7117ba0a536cdce7ed162880b550325f676fa9ac
wpe: Fix build with -Werror enabled

Including gl.h from WPEThreadedView.h leads to GST_LEVEL_DEFAULT detected as
redefined. The proposed fix is to include config.h from the CPP implementation
file and disable gl.h inclusion in the header, by using forward declarations.
ext/wpe/WPEThreadedView.cpp
ext/wpe/WPEThreadedView.h
ext/wpe/gstwpesrc.cpp