xref: /haiku/headers/build/HaikuBuildCompatibility.h (revision 4f00613311d0bd6b70fa82ce19931c41f071ea4e)
1 #ifndef HAIKU_BUILD_COMPATIBILITY_H
2 #define HAIKU_BUILD_COMPATIBILITY_H
3 
4 #include <sys/types.h>
5 
6 #define _BE_ERRNO_H_
7 	// this is what Dano/Zeta is using
8 #include <Errors.h>
9 #include <string.h>
10 
11 // no addr_t under standard BeOS
12 typedef unsigned long haiku_build_addr_t;
13 #define addr_t haiku_build_addr_t
14 
15 #ifndef DEFFILEMODE
16 #define	DEFFILEMODE	(S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
17 #endif
18 
19 #ifndef FS_WRITE_FSINFO_NAME
20 #define	FS_WRITE_FSINFO_NAME	0x0001
21 #endif
22 
23 #ifndef B_CURRENT_TEAM
24 #define B_CURRENT_TEAM	0
25 #endif
26 
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 extern size_t	strnlen(const char *string, size_t count);
33 
34 extern size_t	strlcat(char *dest, const char *source, size_t length);
35 extern size_t   strlcpy(char *dest, const char *source, size_t length);
36 
37 extern char		*strcasestr(const char *string, const char *searchString);
38 
39 extern float	roundf(float value);
40 
41 #ifdef __cplusplus
42 } // extern "C"
43 #endif
44 
45 #endif	// HAIKU_BUILD_COMPATIBILITY_H
46 
47