summaryrefslogtreecommitdiffstats
path: root/private/nw/rdr/convert.h
blob: e093e4d2c7f4dbcc159986af6ea0a640e53581a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

/*++

Copyright (c) 1992  Microsoft Corporation

Module Name:

    Convert.h

Abstract:

    This module declares the types used to permit exchange.c to be used
    with minimal change in the NetWare file system.

Author:

    Colin Watson    [ColinW]    23-Dec-1992

Revision History:

--*/

#ifndef _CONVERT_
#define _CONVERT_

#define byte UCHAR
#define word USHORT
#define dword ULONG

#define offsetof(r,f)  ((size_t)&(((r*)0)->f))
#define byteswap(x)    ((x>>8)+((x&0xFF)<<8))

#endif //_CONVERT_