From: Tor Lillqvist Date: Wed, 20 Jul 2005 08:37:13 +0000 (+0000) Subject: Make this an inline function. Define it only if G_CAN_INLINE and not C++. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=f0a0fe7a44917f32267b375f700ce6c972e3382d;p=dana%2Fcg-glib.git Make this an inline function. Define it only if G_CAN_INLINE and not C++. 2005-07-20 Tor Lillqvist * glib/gutils.h (g_win32_get_system_data_dirs): Make this an inline function. Define it only if G_CAN_INLINE and not C++. (#173098) --- diff --git a/ChangeLog b/ChangeLog index 8fb09ee6..af2cbecf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-07-20 Tor Lillqvist + + * glib/gutils.h (g_win32_get_system_data_dirs): Make this an + inline function. Define it only if G_CAN_INLINE and not + C++. (#173098) + 2005-07-19 Matthias Clasen * glib/gstring.c (g_string_chunk_insert_len): Avoid diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 8fb09ee6..af2cbecf 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2005-07-20 Tor Lillqvist + + * glib/gutils.h (g_win32_get_system_data_dirs): Make this an + inline function. Define it only if G_CAN_INLINE and not + C++. (#173098) + 2005-07-19 Matthias Clasen * glib/gstring.c (g_string_chunk_insert_len): Avoid diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 8fb09ee6..af2cbecf 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +2005-07-20 Tor Lillqvist + + * glib/gutils.h (g_win32_get_system_data_dirs): Make this an + inline function. Define it only if G_CAN_INLINE and not + C++. (#173098) + 2005-07-19 Matthias Clasen * glib/gstring.c (g_string_chunk_insert_len): Avoid diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 8fb09ee6..af2cbecf 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2005-07-20 Tor Lillqvist + + * glib/gutils.h (g_win32_get_system_data_dirs): Make this an + inline function. Define it only if G_CAN_INLINE and not + C++. (#173098) + 2005-07-19 Matthias Clasen * glib/gstring.c (g_string_chunk_insert_len): Avoid diff --git a/glib/gutils.h b/glib/gutils.h index 079a86c5..3cb781f0 100644 --- a/glib/gutils.h +++ b/glib/gutils.h @@ -130,7 +130,10 @@ G_CONST_RETURN gchar* G_CONST_RETURN * g_get_system_data_dirs (void); #ifdef G_OS_WIN32 G_CONST_RETURN gchar* G_CONST_RETURN * g_win32_get_system_data_dirs_for_module (gconstpointer address); -static G_CONST_RETURN gchar * G_CONST_RETURN * +#endif + +#if defined (G_OS_WIN32) && defined (G_CAN_INLINE) && !defined (__cplusplus) +static inline G_CONST_RETURN gchar * G_CONST_RETURN * g_win32_get_system_data_dirs (void) { return g_win32_get_system_data_dirs_for_module ((gconstpointer) &g_win32_get_system_data_dirs);