mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-27 03:18:59 +02:00
Define an ENABLE_REGEX macro
* configure.in: Define an ENABLE_REGEX macro * gobject/gboxed.c: Don't refer to g_regex_ref if ENABLE_REGEX is not defined. svn path=/trunk/; revision=7815
This commit is contained in:
@@ -263,10 +263,14 @@ GType
|
||||
g_regex_get_type (void)
|
||||
{
|
||||
static GType type_id = 0;
|
||||
|
||||
#ifdef ENABLE_REGEX
|
||||
if (!type_id)
|
||||
type_id = g_boxed_type_register_static (g_intern_static_string ("GRegex"),
|
||||
(GBoxedCopyFunc) g_regex_ref,
|
||||
(GBoxedFreeFunc) g_regex_unref);
|
||||
#endif
|
||||
|
||||
return type_id;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user