btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / userlandfs / shared / Locker.h
blob4b6fad512a17294e9f665aabcf55456edc6eb0b3
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _USERLAND_FS_LOCKER_H
6 #define _USERLAND_FS_LOCKER_H
8 #ifdef _KERNEL_MODE
9 // kernel: use the RecursiveLock class
12 #include "RecursiveLock.h"
15 namespace UserlandFSUtil {
16 typedef RecursiveLock Locker;
20 #else
21 // userland: use the BLocker class
23 #include <Locker.h>
25 namespace UserlandFSUtil {
26 typedef BLocker Locker;
29 #endif // kernel/userland
31 using UserlandFSUtil::Locker;
33 #endif // _USERLAND_FS_LOCKER_H