Fixed the rc build. Sorry for the inconveniences.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13421 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,6 +4,10 @@ GENERATE_C++ on [ FGristFiles lexer.l parser.y ] = true ;
|
||||
|
||||
SubDirC++Flags -Wno-sign-compare -Wno-unused ;
|
||||
|
||||
local r5Compatibility = [ FDirName $(SUBDIR) R5Compatibility.h ] ;
|
||||
SubDirCcFlags -include $(r5Compatibility) ;
|
||||
SubDirC++Flags -include $(r5Compatibility) ;
|
||||
|
||||
StaticLibrary rdef :
|
||||
compile.cpp decompile.cpp lexer.l parser.y rdef.cpp ;
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
#ifndef RC_R5_COMPATIBILITY_H
|
||||
#define RC_R5_COMPATIBILITY_H
|
||||
|
||||
#ifndef __HAIKU__
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // !__HAIKU__
|
||||
|
||||
#endif // RC_R5_COMPATIBILITY_H
|
||||
@@ -43,12 +43,6 @@ static char sOutputFile[B_PATH_NAME_LENGTH] = { 0 };
|
||||
static char *sFirstInputFile = NULL;
|
||||
|
||||
|
||||
#ifndef __HAIKU__
|
||||
extern "C" size_t strlcat(char *dest, const char *source, size_t length);
|
||||
extern "C" size_t strlcpy(char *dest, const char *source, size_t length);
|
||||
#endif
|
||||
|
||||
|
||||
void
|
||||
warn(const char *format, ...)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user