efreet: Guard priority settign and getting functions for WIN32

These functions are not available on a mingw build. Not really needed
either so just ifdef them.
This commit is contained in:
Stefan Schmidt 2013-07-09 09:04:58 +01:00
parent fad576295e
commit 531be113be
3 changed files with 15 additions and 0 deletions

View File

@ -5,8 +5,10 @@
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#ifndef _WIN32
#include <sys/time.h>
#include <sys/resource.h>
#endif
#include <Eina.h>
#include <Eet.h>
@ -252,7 +254,10 @@ main(int argc, char **argv)
}
extra_dirs = eina_list_sort(extra_dirs, -1, EINA_COMPARE_CB(strcmp));
#ifndef _WIN32
setpriority(PRIO_PROCESS, 0, 19);
#endif
/* init external subsystems */
if (!eet_init()) goto eet_error;
if (!ecore_init()) goto ecore_error;

View File

@ -6,8 +6,10 @@
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#ifndef _WIN32
#include <sys/time.h>
#include <sys/resource.h>
#endif
#include <Eina.h>
#include <Eet.h>
@ -770,7 +772,10 @@ main(int argc, char **argv)
flush = EINA_TRUE;
}
#ifndef _WIN32
setpriority(PRIO_PROCESS, 0, 19);
#endif
if (!eet_init()) return -1;
if (!ecore_init()) return -1;

View File

@ -3,8 +3,10 @@
#endif
#include <stdlib.h>
#ifndef _WIN32
#include <sys/time.h>
#include <sys/resource.h>
#endif
#include <Ecore.h>
#include <Ecore_File.h>
@ -50,7 +52,10 @@ main(int argc, char *argv[])
if (!dbus_init()) goto dbus_error;
if (!cache_init()) goto cache_error;
#ifndef _WIN32
setpriority(PRIO_PROCESS, 0, 19);
#endif
ecore_main_loop_begin();
cache_shutdown();