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 revision (hrev). Will be set when copying libroot.so to the image. 11// Lives in a separate section so that it can easily be found. 12static char sHaikuRevision[SYSTEM_REVISION_LENGTH] 13 __attribute__((section("_haiku_revision"))); 14 15 16const char* 17#if defined(_KERNEL_MODE) || defined(_BOOT_MODE) 18get_haiku_revision(void) 19#else 20__get_haiku_revision(void) 21#endif 22{ 23 return sHaikuRevision; 24} 25