diff options
author | Colin Walters <walters@verbum.org> | 2015-08-29 09:28:35 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2015-08-29 09:29:11 -0400 |
commit | 0cf50c6735246147d0a231d45f730724de0841e8 (patch) | |
tree | 236e9b7d330b73e514f74e485e615900af897566 /glnx-backports.h | |
parent | dc5702aba93b5598808d7d7e2d65eccffa31de2c (diff) | |
download | libglnx-0cf50c6735246147d0a231d45f730724de0841e8.tar.gz |
Add a generic glnx-backports.h
Where we can put general functions that come in newer glib.
Diffstat (limited to 'glnx-backports.h')
-rw-r--r-- | glnx-backports.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/glnx-backports.h b/glnx-backports.h new file mode 100644 index 0000000..825ef0f --- /dev/null +++ b/glnx-backports.h @@ -0,0 +1,36 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- + * + * Copyright (C) 2015 Colin Walters <walters@verbum.org> + * + * GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#pragma once + +#include <gio/gio.h> + +G_BEGIN_DECLS + +#if !GLIB_CHECK_VERSION(2, 44, 0) +#define g_strv_contains glnx_strv_contains +gboolean glnx_strv_contains (const gchar * const *strv, + const gchar *str); +#endif /* !GLIB_CHECK_VERSION(2, 44, 0) */ + +G_END_DECLS |