Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webview_linux_webkit_gtk.h: there are already exists extern C in the included headers #9

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

vitlav
Copy link
Contributor

@vitlav vitlav commented Jul 9, 2021

Since glib 2.68 C++ headers is included from glib headers:

#if defined(glib_typeof_2_68) && GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_68
/* for glib_typeof */
#include <type_traits>
#endif

With telegram 2.8.6 I got

 2598 |   template<typename _Default, template<typename...> class _Op,
      |   ^~~~~~~~
In file included from /tmp/.private/lav/RPM/BUILD/telegram-desktop-2.8.6/Telegram/lib_webview/webview/platform/linux/webview_linux_webkit_gtk.cpp:7:
/tmp/.private/lav/RPM/BUILD/telegram-desktop-2.8.6/Telegram/lib_webview/webview/platform/linux/webview_linux_webkit_gtk.h:9:1: note: ‘extern "C"’ linkage started here
    9 | extern "C" {
      | ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
                 from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkconfig.h:13,
                 from /usr/include/gtk-3.0/gdk/gdk.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from /tmp/.private/lav/RPM/BUILD/telegram-desktop-2.8.6/Telegram/lib_webview/webview/platform/linux/webview_linux_webkit_gtk.h:11,
                 from /tmp/.private/lav/RPM/BUILD/telegram-desktop-2.8.6/Telegram/lib_webview/webview/platform/linux/webview_linux_webkit_gtk.cpp:7:
/usr/include/c++/10/type_traits:2603:3: error: template with C linkage

@john-preston john-preston merged commit 90b3b39 into desktop-app:master Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants