]> git.jsancho.org Git - lugaru.git/blob - Source/CarbonStdCLib.h
Added GPL license and headers.
[lugaru.git] / Source / CarbonStdCLib.h
1 /*
2 Copyright (C) 2003, 2010 - Wolfire Games
3
4 This file is part of Lugaru.
5
6 Lugaru is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
14
15 See the GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 */
21
22 /************************************************************
23
24     CarbonStdCLib.h
25     Assorted helper functions associated with CarbonStdClib.o.
26
27     Copyright Apple Computer,Inc.  2001
28     All rights reserved
29
30  * Warning:  This interface is NOT a part of the ANSI C standard.
31  *           This header file is not POSIX compliant.
32  *           For portable code, don't use this interface.
33
34 ************************************************************/
35
36
37 #ifndef __CARBONSTDCLIB__
38 #define __CARBONSTDCLIB__
39
40 #ifndef __CONDITIONALMACROS__
41 #include <ConditionalMacros.h>
42 #endif
43
44 #if defined (__powerc) || defined (powerc) || defined (__CFM68K__)
45     #pragma import on
46 #endif
47
48 #if __cplusplus
49 extern "C" {
50 #endif  /* __cplusplus */
51
52 #if !(CALL_NOT_IN_CARBON || __MPWINTERNAL__)
53
54 extern void InitCarbonStdCLib( void ) ;
55 extern void TermCarbonStdCLib( void ) ;
56
57 extern void ConvertUnixPathToHFSPath(const char *unixPath, char *hfsPath) ;
58 extern void ConvertHFSPathToUnixPath(const char *hfsPath, char *unixPath) ;
59
60 /* BSD functions */
61
62 int bsd_chdir(const char *path) ;
63 int bsd_chmod(const char *path , int mode) ;
64
65 #endif
66
67 #if __cplusplus
68 }
69 #endif  /* __cplusplus */
70
71 #if defined (__powerc) || defined (powerc) || defined (__CFM68K__)
72     #pragma import off
73 #endif
74
75 #endif  /* __CARBONSTDCLIB__ */
76