diff --git a/src/fileutils.cpp b/src/fileutils.cpp
index f29e42e2f707f2daf010d0f81a9734af6cd27e6e..e0b73d5d8aae65180dd4194e7ea0b2b4efaa49ed 100644
--- a/src/fileutils.cpp
+++ b/src/fileutils.cpp
@@ -177,7 +177,7 @@ create_pidfile()
 std::string
 expand_path(const std::string &path)
 {
-#if defined __ANDROID__ || defined RING_UWP || defined WIN32 || (defined(TARGET_OS_IOS) && TARGET_OS_IOS)
+#if defined __ANDROID__ || defined RING_UWP || defined WIN32 || defined __APPLE__
     RING_ERR("Path expansion not implemented, returning original");
     return path;
 #else