Add OS X support to AMBuild and 10.9 support to amxxpc.

Former-commit-id: 91779cb9414e0ade9c170752cfc313c0425c8d14
This commit is contained in:
David Anderson
2014-02-08 15:25:57 -08:00
parent 90b2860fd2
commit bd586d37e6
3 changed files with 16 additions and 6 deletions

View File

@ -487,7 +487,9 @@ int pc_compile(int argc, char *argv[])
tname=NULL;
sname=NULL;
#else
tname=tempnam(NULL,"pawn");
char *buffer = strdup(P_tmpdir "/pawn.XXXXXX");
close(mkstemp(buffer));
tname=buffer;
#endif
ftmp=(FILE*)pc_createsrc(tname);
for (fidx=0; (sname=get_sourcefile(fidx))!=NULL; fidx++) {
@ -1298,7 +1300,8 @@ static void setconfig(char *root)
insert_path(path);
/* same for the codepage root */
#if !defined NO_CODEPAGE
*ptr='\0';
if (ptr)
*ptr='\0';
if (!cp_path(path,"codepage"))
error(109,path); /* codepage path */
#endif