btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / bin / rc / R5Compatibility.h
blob3b3e318cfbb37a9cf8d86f132e81b76b5f52486b
1 #ifndef RC_R5_COMPATIBILITY_H
2 #define RC_R5_COMPATIBILITY_H
4 #ifndef __HAIKU__
6 #include <sys/types.h>
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
12 // Already defined unter Linux.
13 #if (defined(__BEOS__) || defined(__HAIKU__))
14 extern size_t strnlen(const char *string, size_t count);
15 #endif
17 extern size_t strlcat(char *dest, const char *source, size_t length);
18 extern size_t strlcpy(char *dest, const char *source, size_t length);
20 #ifdef __cplusplus
21 } // extern "C"
22 #endif
24 #endif // !__HAIKU__
26 #endif // RC_R5_COMPATIBILITY_H