ReactOS 0.4.15-dev-7842-g558ab78
osdep.h
Go to the documentation of this file.
1
2// Copyright (c) 2007 Qumranet All Rights Reserved
3//
4// Module Name:
5// osdep.h
6//
7// Abstract:
8// Windows OS dependent definitions of data types
9//
10// Author:
11// Yan Vugenfirer - February 2007.
12//
14
15#pragma once
16
17#include <ntddk.h>
18
19#ifdef __REACTOS__
20#ifdef __GNUC__
21#undef FORCEINLINE
22#define FORCEINLINE __attribute__((__always_inline__))
23#endif
24#endif
25
26#ifndef __REACTOS__
27#if !defined(ENOSPC)
28#define ENOSPC 1
29#endif
30#endif
31
32#if !defined(__cplusplus) && !defined(bool)
33// Important note: in MSFT C++ bool length is 1 bytes
34// C++ does not define length of bool
35// inconsistent definition of 'bool' may create compatibility problems
36#define bool u8
37#define false FALSE
38#define true TRUE
39#endif
40
41#define SMP_CACHE_BYTES 64