diff options
author | mm <mm@openoffice.org> | 2000-09-27 10:26:12 +0000 |
---|---|---|
committer | mm <mm@openoffice.org> | 2000-09-27 10:26:12 +0000 |
commit | a71975fc10deceb6b1aae2fa55e302f4433f9065 (patch) | |
tree | 90647870cf962f8f8ddc27d96ae334b488bdb0bf /rsc/source | |
parent | ff0d155cfbaffd3ca64008140ddc24c324c43d0e (diff) |
Mac fix corrected
Diffstat (limited to 'rsc/source')
-rw-r--r-- | rsc/source/tools/rsctools.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/rsc/source/tools/rsctools.cxx b/rsc/source/tools/rsctools.cxx index dd8b545442df..b82141c6d46b 100644 --- a/rsc/source/tools/rsctools.cxx +++ b/rsc/source/tools/rsctools.cxx @@ -2,9 +2,9 @@ * * $RCSfile: rsctools.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:42:56 $ + * last change: $Author: mm $ $Date: 2000-09-27 11:26:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -62,11 +62,14 @@ Source Code Control System - Header - $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/rsc/source/tools/rsctools.cxx,v 1.1.1.1 2000-09-18 16:42:56 hr Exp $ + $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/rsc/source/tools/rsctools.cxx,v 1.2 2000-09-27 11:26:12 mm Exp $ Source Code Control System - Update $Log: not supported by cvs2svn $ + Revision 1.1.1.1 2000/09/18 16:42:56 hr + initial import + Revision 1.32 2000/09/17 12:51:12 willem.vandorp OpenOffice header added. @@ -186,8 +189,12 @@ int rsc_stricmp( const char *string1, const char *string2 ){ *************************************************************************/ ByteString GetTmpFileName() { + #ifdef MACOSX // Use tmpnam instead of tempnam as tempnam has some bugs in Mac OS X return ByteString( tmpnam( NULL ) ); +#else + return ByteString( tempnam( (const char *) P_tmpdir, NULL ) ); +#endif } /********************************************************************/ |