WebPlatformForEmbedded / libwpe

General-purpose library specifically developed for the WPE-flavored port of WebKit.
BSD 2-Clause "Simplified" License
49 stars 36 forks source link

Fix build failure due to libc++ using libc functions #116

Closed aperezdc closed 2 years ago

aperezdc commented 2 years ago

Include the alloc-private.h header after the C++ standard library headers. This sidesteps build failures caused by implementations of std::map and std::string which use libc memory allocation functions in expanded templates after they have been marked with the poison pragma.

Fixes #115

aperezdc commented 2 years ago

Cherry-picked into the libwpe-1.12 release branch as commit f1cac5b25c7698b09a8c3c734cb4ee37619f4183