A bit of #ifdef'ing to make the stuff edible for userland compilation

with gcc 4.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16147 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2006-01-30 01:22:11 +00:00
parent 4b0e1b9bda
commit deeb2f399a
3 changed files with 22 additions and 4 deletions
@@ -12,13 +12,19 @@
#include <stdlib.h>
#include <string.h>
#include <util/kernel_cpp.h>
#ifndef _USER_MODE
# include <util/kernel_cpp.h>
#else
# include <new>
#endif
#ifndef _BOOT_MODE
# include <DiskDeviceTypes.h>
#else
# include <boot/partitions.h>
#endif
#include <KernelExport.h>
#ifndef _USER_MODE
# include <KernelExport.h>
#endif
#include "PartitionMap.h"
@@ -26,6 +32,8 @@
//#define TRACE(x) dprintf x
using std::nothrow;
// partition_type
struct partition_type {
uint8 type;