summaryrefslogtreecommitdiff
path: root/infra/utils_internal.h
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-11-26 14:37:05 +0800
committeryangwei <[email protected]>2024-11-26 14:37:05 +0800
commit78562a8dd879a3753debae14198f00fe2dc0112a (patch)
tree0c316ea52a36bda174b9df7fbd3df44bb65e7908 /infra/utils_internal.h
parent1ddd1f6b783573aa8ae5e1594430865b20c9f0a3 (diff)
✨ feat(stellar core): module & node register in stellar_new
Diffstat (limited to 'infra/utils_internal.h')
-rw-r--r--infra/utils_internal.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/infra/utils_internal.h b/infra/utils_internal.h
index b2deb07..11c1f2a 100644
--- a/infra/utils_internal.h
+++ b/infra/utils_internal.h
@@ -12,6 +12,8 @@ extern "C"
#include <stdlib.h>
#include <string.h>
+#include "stellar/utils.h"
+
#include "toml.h"
#include "log_internal.h"
@@ -25,10 +27,7 @@ extern "C"
#define ATOMIC_ZERO(x) __atomic_fetch_and(x, 0, __ATOMIC_RELAXED)
#define ATOMIC_ADD(x, y) __atomic_fetch_add(x, y, __ATOMIC_RELAXED)
#define ATOMIC_SET(x, y) __atomic_store_n(x, y, __ATOMIC_RELAXED)
-#define MIN(x, y) ((x) < (y) ? (x) : (y))
-#define likely(expr) __builtin_expect((expr), 1)
-#define unlikely(expr) __builtin_expect((expr), 0)
/*
* The maximum number of seconds that can be stored in the time_t value is 2147483647 –- a little over 68 years.