mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-23 19:52:12 +03:00
* glibcompat.h: Define g_try_malloc as malloc for glib 1.2.x.
This commit is contained in:
parent
5cb7bf73fd
commit
bf5a5c4e04
@ -1,5 +1,7 @@
|
||||
2003-10-15 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* glibcompat.h: Define g_try_malloc as malloc for glib 1.2.x.
|
||||
|
||||
* view.c (load_view_file): Use g_try_malloc() because the
|
||||
failure to allcate memory is acceptable here.
|
||||
Reported by Pavel S. Shirshov <pavelsh@mail.ru>
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
#if GLIB_MAJOR_VERSION < 2
|
||||
gsize g_strlcpy (gchar *dest, const gchar *src, gsize dest_size);
|
||||
#define g_try_malloc(x) malloc(x)
|
||||
#endif /* GLIB_MAJOR_VERSION < 2 */
|
||||
|
||||
#endif /* !__MC_GLIBCOMPAT_H */
|
||||
|
Loading…
Reference in New Issue
Block a user