Browse Source

Disable unsupported functions on iOS.

Lasse Öörni 8 years ago
parent
commit
7493684840
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Urho3D/Core/ProcessUtils.cpp

+ 1 - 1
Source/Urho3D/Core/ProcessUtils.cpp

@@ -532,7 +532,7 @@ String GetLoginName()
     DWORD len = UNLEN + 1;
     if (GetUserName(name, &len))
         return name;
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) && !defined(IOS)
     SCDynamicStoreRef s = SCDynamicStoreCreate(NULL, CFSTR("GetConsoleUser"), NULL, NULL);
     if (s != NULL)
     {