]> git.sesse.net Git - vlc/blobdiff - src/config/file.c
WinCE: add replacement getpid() function
[vlc] / src / config / file.c
index 1da0a698abd2fc4601069e1faee2db51a5beda5b..6c8340ee8939a34a1c8427b9752275185d75fd64 100644 (file)
@@ -522,13 +522,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
         goto error;
     }
 
-    if (asprintf (&temporary, "%s.%u", permanent,
-#ifdef UNDER_CE
-                  GetCurrentProcessId ()
-#else
-                  getpid ()
-#endif
-                 ) == -1)
+    if (asprintf (&temporary, "%s.%u", permanent, getpid ()) == -1)
     {
         temporary = NULL;
         module_list_free (list);