]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
GitHub Issue #367. Remove references to deprecated G_INLINE_FUNC.
authorOliver Kurth <okurth@vmware.com>
Mon, 30 Sep 2019 23:24:27 +0000 (16:24 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 30 Sep 2019 23:24:27 +0000 (16:24 -0700)
G_INLINE_FUNC was a work-around for compilers that didn't support
static inline.  Change uses of it to static inline.

open-vm-tools/lib/include/vmware/tools/plugin.h
open-vm-tools/lib/include/vmware/tools/threadPool.h
open-vm-tools/lib/include/vmware/tools/utils.h

index f9acc6a2991b66776b6eaaa29e4b5aad41c97463..deefd1f3df19c99bd6c3a12e1dba19f7739df687 100644 (file)
@@ -290,7 +290,7 @@ typedef struct ToolsAppCtx {
  *
  * @return TRUE if COM is initialized when the function returns.
  */
-G_INLINE_FUNC gboolean
+static inline gboolean
 ToolsCore_InitializeCOM(ToolsAppCtx *ctx)
 {
    if (!ctx->comInitialized) {
index 3f2082b3e728f4d5fc16a14fbddcab44ab796c12..5880fbcff76daa6ab63d6a72c7af36b92cbe367e 100644 (file)
@@ -91,7 +91,7 @@ typedef struct ToolsCorePool {
  *******************************************************************************
  */
 
-G_INLINE_FUNC ToolsCorePool *
+static inline ToolsCorePool *
 ToolsCorePool_GetPool(ToolsAppCtx *ctx)
 {
    ToolsCorePool *pool = NULL;
@@ -123,7 +123,7 @@ ToolsCorePool_GetPool(ToolsAppCtx *ctx)
  *******************************************************************************
  */
 
-G_INLINE_FUNC guint
+static inline guint
 ToolsCorePool_SubmitTask(ToolsAppCtx *ctx,
                          ToolsCorePoolCb cb,
                          gpointer data,
@@ -153,7 +153,7 @@ ToolsCorePool_SubmitTask(ToolsAppCtx *ctx,
  *******************************************************************************
  */
 
-G_INLINE_FUNC void
+static inline void
 ToolsCorePool_CancelTask(ToolsAppCtx *ctx,
                          guint taskId)
 {
@@ -197,7 +197,7 @@ ToolsCorePool_CancelTask(ToolsAppCtx *ctx,
  *******************************************************************************
  */
 
-G_INLINE_FUNC gboolean
+static inline gboolean
 ToolsCorePool_StartThread(ToolsAppCtx *ctx,
                           const gchar *threadName,
                           ToolsCorePoolCb cb,
index f6574590656d37c2404ff1850d10196f5fccd04e..a3292d5c09499f6921a9214e9599302a08ccaaff 100644 (file)
 #  include <sys/time.h>
 #endif
 
-
-/* Work around a glib limitation: it doesn't set G_INLINE_FUNC on Win32. */
-#if defined(G_PLATFORM_WIN32)
-#  if defined(G_INLINE_FUNC)
-#     undef G_INLINE_FUNC
-#  endif
-#  define G_INLINE_FUNC static __inline
-#endif
-
 #ifndef ABS
 #  define ABS(x) (((x) >= 0) ? (x) : -(x))
 #endif