diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-12-31 20:55:25 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-12-31 20:55:25 +0000 |
commit | d68f8326740a6a8d0b97b00e774d23c1a5c336a2 (patch) | |
tree | fe4a64fcea60bd35d214ac6813cd598af97b87ef /pd/src/s_inter.c | |
parent | 1498e89f88d0a090a59ceb4cf19daf9d9c8963c5 (diff) |
Took a bunch of patches... more to come but these are the ones that might break stuff so I'll sync here.
svn path=/trunk/; revision=4336
Diffstat (limited to 'pd/src/s_inter.c')
-rw-r--r-- | pd/src/s_inter.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c index 66f59a24..90623df6 100644 --- a/pd/src/s_inter.c +++ b/pd/src/s_inter.c @@ -40,7 +40,7 @@ typedef int socklen_t; #include <string.h> #include <stdio.h> -#ifdef MACOSX +#ifdef __APPLE__ #include <sys/types.h> #include <sys/stat.h> #include <pthread.h> @@ -1018,7 +1018,7 @@ int sys_startgui(const char *guidir) else if (!childpid) /* we're the child */ { seteuid(getuid()); /* lose setuid priveliges */ -#ifndef MACOSX +#ifndef __APPLE__ /* the wish process in Unix will make a wish shell and read/write standard in and out unless we close the file descriptors. Somehow this doesn't make the MAC OSX @@ -1037,7 +1037,7 @@ int sys_startgui(const char *guidir) #endif if (!sys_guicmd) { -#ifdef MACOSX +#ifdef __APPLE__ char *homedir = getenv("HOME"), filename[250]; struct stat statbuf; /* first look for Wish bundled with and renamed "Pd" */ @@ -1202,7 +1202,7 @@ int sys_startgui(const char *guidir) if (!SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS)) fprintf(stderr, "pd: couldn't set high priority class\n"); #endif -#ifdef MACOSX +#ifdef __APPLE__ if (sys_hipriority) { struct sched_param param; @@ -1214,7 +1214,7 @@ int sys_startgui(const char *guidir) if (err) post("warning: high priority scheduling failed\n"); } -#endif /* MACOSX */ +#endif /* __APPLE__ */ if (!sys_nogui && !sys_guisetportnumber) { |