Moved Haiku-specific defs for the Translation Kit to the proper file
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18377 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -49,5 +49,17 @@ extern float roundf(float value);
|
|||||||
#define B_REDO 'REDO'
|
#define B_REDO 'REDO'
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// These are R1-specific extensions
|
||||||
|
#ifndef HAIKU_TARGET_PLATFORM_HAIKU
|
||||||
|
|
||||||
|
#define B_TRANSLATION_MAKE_VERSION(major,minor,revision) ((major << 8) | ((minor << 4) & 0xf0) | (revision & 0x0f))
|
||||||
|
#define B_TRANSLATION_MAJOR_VERSION(v) (v >> 8)
|
||||||
|
#define B_TRANSLATION_MINOR_VERSION(v) ((v >> 4) & 0xf)
|
||||||
|
#define B_TRANSLATION_REVISION_VERSION(v) (v & 0xf)
|
||||||
|
|
||||||
|
#define B_BAD_DATA (B_NOT_ALLOWED+1)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // HAIKU_BUILD_COMPATIBILITY_H
|
#endif // HAIKU_BUILD_COMPATIBILITY_H
|
||||||
|
|
||||||
|
|||||||
@@ -50,18 +50,6 @@
|
|||||||
#define max(a,b) ((a > b) ? (a) : (b))
|
#define max(a,b) ((a > b) ? (a) : (b))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// These are R1-specific extensions
|
|
||||||
#ifndef HAIKU_TARGET_PLATFORM_HAIKU
|
|
||||||
|
|
||||||
#define B_TRANSLATION_MAKE_VERSION(major,minor,revision) ((major << 8) | ((minor << 4) & 0xf0) | (revision & 0x0f))
|
|
||||||
#define B_TRANSLATION_MAJOR_VERSION(v) (v >> 8)
|
|
||||||
#define B_TRANSLATION_MINOR_VERSION(v) ((v >> 4) & 0xf)
|
|
||||||
#define B_TRANSLATION_REVISION_VERSION(v) (v & 0xf)
|
|
||||||
|
|
||||||
#define B_BAD_DATA (B_NOT_ALLOWED+1)
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class BaseTranslator : public BTranslator {
|
class BaseTranslator : public BTranslator {
|
||||||
public:
|
public:
|
||||||
BaseTranslator(const char *name, const char *info,
|
BaseTranslator(const char *name, const char *info,
|
||||||
|
|||||||
Reference in New Issue
Block a user