Commit e1c96788 authored by Philip Chimento's avatar Philip Chimento Committed by Philip Chimento

GjsPrivate: Sources should be C files

The GjsPrivate library doesn't use any SpiderMonkey code, only C APIs.
So the files should be compiled with a C compiler, otherwise we get
C++'s stricter typechecks, making it hard to use void* APIs such as
g_steal_pointer().

[skip cpplint] - This shows a diff in the linter output because the
files were renamed.
parent a27e71fe
......@@ -29,6 +29,9 @@ AM_SILENT_RULES([yes])
PKG_PROG_PKG_CONFIG
PKG_INSTALLDIR
AC_PROG_CC
AC_PROG_CC_C99
AC_LANG([C++])
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CXX
......
......@@ -101,9 +101,9 @@ gjs_srcs = \
# These files were part of a separate library
gjs_private_srcs = \
libgjs-private/gjs-gdbus-wrapper.cpp \
libgjs-private/gjs-gdbus-wrapper.c \
libgjs-private/gjs-gdbus-wrapper.h \
libgjs-private/gjs-util.cpp \
libgjs-private/gjs-util.c \
libgjs-private/gjs-util.h \
libgjs-private/gjs-gtk-util.h \
$(NULL)
......
......@@ -93,7 +93,7 @@ gjs_dbus_implementation_property_set(GDBusConnection *connection,
g_signal_emit(self, signals[SIGNAL_HANDLE_PROPERTY_SET], 0, property_name, value);
return true;
return TRUE;
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment