Cleanup system-revision stuff.
* move system_revision.h to headers/private/libroot * unify libroot's get_system_revision() (the one I introduced recently) with kernel's get_haiku_revision(), the function is now called get_haiku_revision() in the kernel and __get_haiku_revision() in libroot * system_revision.c is now being built as part of libroot and as part of the kernel * adjusted all callers of get_system_revision() accordingly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41516 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+8
-4
@@ -2,8 +2,8 @@
|
||||
* Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _SYSTEM_SYSTEM_REVISION_H
|
||||
#define _SYSTEM_SYSTEM_REVISION_H
|
||||
#ifndef _LIBROOT_SYSTEM_REVISION_H
|
||||
#define _LIBROOT_SYSTEM_REVISION_H
|
||||
|
||||
|
||||
/** The length of the system revision character array symbol living in libroot
|
||||
@@ -17,7 +17,11 @@ extern "C" {
|
||||
|
||||
|
||||
/** returns the system revision */
|
||||
const char* get_system_revision();
|
||||
#ifdef _KERNEL_MODE
|
||||
const char* get_haiku_revision(void);
|
||||
#else
|
||||
const char* __get_haiku_revision(void);
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -25,4 +29,4 @@ const char* get_system_revision();
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _SYSTEM_SYSTEM_REVISION_H */
|
||||
#endif /* _LIBROOT_SYSTEM_REVISION_H */
|
||||
Reference in New Issue
Block a user