summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/basic/macro.h3
-rw-r--r--src/basic/process-util.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/macro.h b/src/basic/macro.h
index eeb57ecb8e..44ae1f157a 100644
--- a/src/basic/macro.h
+++ b/src/basic/macro.h
@@ -295,9 +295,6 @@ static inline unsigned long ALIGN_POWER2(unsigned long u) {
#define PTR_TO_SIZE(p) ((size_t) ((uintptr_t) (p)))
#define SIZE_TO_PTR(u) ((void *) ((uintptr_t) (u)))
-#define PTR_TO_PID(p) ((pid_t) ((uintptr_t) p))
-#define PID_TO_PTR(p) ((void*) ((uintptr_t) p))
-
#define memzero(x,l) (memset((x), 0, (l)))
#define zero(x) (memzero(&(x), sizeof(x)))
diff --git a/src/basic/process-util.h b/src/basic/process-util.h
index d17df5d81f..db32a34ef3 100644
--- a/src/basic/process-util.h
+++ b/src/basic/process-util.h
@@ -68,3 +68,6 @@ bool pid_is_alive(pid_t pid);
bool pid_is_unwaited(pid_t pid);
bool is_main_thread(void);
+
+#define PTR_TO_PID(p) ((pid_t) ((uintptr_t) p))
+#define PID_TO_PTR(p) ((void*) ((uintptr_t) p))