mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 18:26:19 +01:00
gutils: Move g_ATEXIT() and g_memmove() definitions from glibconfig.h
The definitions weren’t templated in glibconfig.h.in at all, so didn’t vary between configurations of GLib — so they should be in a normal header. Move them to gutils.h and fix the deprecation annotations. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
74ca348e99
commit
6554c91b13
@ -108,11 +108,6 @@ typedef unsigned @glib_intptr_type_define@ guintptr;
|
||||
#define G_GINTPTR_FORMAT @gintptr_format@
|
||||
#define G_GUINTPTR_FORMAT @guintptr_format@
|
||||
|
||||
#ifndef G_DISABLE_DEPRECATED
|
||||
#define g_ATEXIT(proc) (atexit (proc))
|
||||
#define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
|
||||
#endif
|
||||
|
||||
#define GLIB_MAJOR_VERSION @GLIB_MAJOR_VERSION@
|
||||
#define GLIB_MINOR_VERSION @GLIB_MINOR_VERSION@
|
||||
#define GLIB_MICRO_VERSION @GLIB_MICRO_VERSION@
|
||||
|
@ -194,6 +194,10 @@ gchar *g_format_size (guint64 size);
|
||||
GLIB_DEPRECATED_IN_2_30_FOR(g_format_size)
|
||||
gchar *g_format_size_for_display (goffset size);
|
||||
|
||||
#define g_ATEXIT(proc) (atexit (proc)) GLIB_DEPRECATED_MACRO_IN_2_32
|
||||
#define g_memmove(dest,src,len) \
|
||||
G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END GLIB_DEPRECATED_MACRO_IN_2_40_FOR(memmove)
|
||||
|
||||
#ifndef G_DISABLE_DEPRECATED
|
||||
/**
|
||||
* GVoidFunc:
|
||||
|
Loading…
Reference in New Issue
Block a user