ly common REFACTOR cast warnings
diff --git a/src/ly_common.h b/src/ly_common.h
index ec0d3ea..8dc32d7 100644
--- a/src/ly_common.h
+++ b/src/ly_common.h
@@ -61,6 +61,9 @@
 #define GETMACRO6(_1, _2, _3, _4, _5, _6, NAME, ...) NAME
 #define GETMACRO7(_1, _2, _3, _4, _5, _6, _7, NAME, ...) NAME
 
+#define VOIDPTR_C(var) ((void *)(uintptr_t)(var))
+#define VOIDPTR2_C(var) ((void **)(uintptr_t)(var))
+
 /******************************************************************************
  * Logger
  *****************************************************************************/