8bd2c11fc4
math.h but exported by libroot.so. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14903 a95241bf-73f2-0310-859d-f6bbb57e9c96
47 lines
964 B
C
47 lines
964 B
C
#ifndef HAIKU_BUILD_COMPATIBILITY_H
|
|
#define HAIKU_BUILD_COMPATIBILITY_H
|
|
|
|
#include <sys/types.h>
|
|
|
|
#define _BE_ERRNO_H_
|
|
// this is what Dano/Zeta is using
|
|
#include <Errors.h>
|
|
#include <string.h>
|
|
|
|
// no addr_t under standard BeOS
|
|
typedef unsigned long haiku_build_addr_t;
|
|
#define addr_t haiku_build_addr_t
|
|
|
|
#ifndef DEFFILEMODE
|
|
#define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
|
|
#endif
|
|
|
|
#ifndef FS_WRITE_FSINFO_NAME
|
|
#define FS_WRITE_FSINFO_NAME 0x0001
|
|
#endif
|
|
|
|
#ifndef B_CURRENT_TEAM
|
|
#define B_CURRENT_TEAM 0
|
|
#endif
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern size_t strnlen(const char *string, size_t count);
|
|
|
|
extern size_t strlcat(char *dest, const char *source, size_t length);
|
|
extern size_t strlcpy(char *dest, const char *source, size_t length);
|
|
|
|
extern char *strcasestr(const char *string, const char *searchString);
|
|
|
|
extern float roundf(float value);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif // HAIKU_BUILD_COMPATIBILITY_H
|
|
|