mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 07:00:53 +00:00
libsysprof-capture: Use SYSPROF_INT64_CONSTANT instead of GLib version
Same for the unsigned version. They do the same thing as the GLib versions. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #40
This commit is contained in:
@ -59,6 +59,16 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#if INT_MAX == LONG_MAX
|
||||
#define SYSPROF_INT64_CONSTANT(x) x##ULL
|
||||
#define SYSPROF_UINT64_CONSTANT(x) x##LL
|
||||
#else
|
||||
#define SYSPROF_INT64_CONSTANT(x) x##UL
|
||||
#define SYSPROF_UINT64_CONSTANT(x) x##L
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define SYSPROF_BEGIN_DECLS extern "C" {
|
||||
#define SYSPROF_END_DECLS }
|
||||
|
||||
Reference in New Issue
Block a user