mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user