libsysprof-capture: Replace G_{UN,}LIKELY with SYSPROF_{UN,}LIKELY

This does the same thing for modern compilers, but without the GLib
dependency.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #40
This commit is contained in:
Philip Withnall
2020-07-01 16:52:19 +01:00
parent c9f54fcc68
commit f925fab564
7 changed files with 32 additions and 23 deletions

View File

@ -70,6 +70,7 @@
#endif
#include "sysprof-capture-util-private.h"
#include "sysprof-macros.h"
#ifdef G_OS_WIN32
static G_LOCK_DEFINE (_sysprof_io_sync);
@ -80,7 +81,7 @@ size_t
{
static size_t pgsz = 0;
if G_UNLIKELY (pgsz == 0)
if SYSPROF_UNLIKELY (pgsz == 0)
{
#ifdef G_OS_WIN32
SYSTEM_INFO system_info;