xref: /haiku/src/system/libroot/os/system_revision.c (revision 323b65468e5836bb27a5e373b14027d902349437)
1 /*
2  * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 
7 #include <system_revision.h>
8 
9 
10 // Haiku SVN revision. Will be set when copying libroot.so to the image.
11 // Lives in a separate section so that it can easily be found.
12 static char sHaikuRevision[SYSTEM_REVISION_LENGTH]
13 	__attribute__((section("_haiku_revision")));
14 
15 
16 const char*
17 #ifdef _KERNEL_MODE
18 get_haiku_revision(void)
19 #else
20 __get_haiku_revision(void)
21 #endif
22 {
23 	return sHaikuRevision;
24 }
25