Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
538 B

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. Convert.h
  5. Abstract:
  6. This module declares the types used to permit exchange.c to be used
  7. with minimal change in the NetWare file system.
  8. Author:
  9. Colin Watson [ColinW] 23-Dec-1992
  10. Revision History:
  11. --*/
  12. #ifndef _CONVERT_
  13. #define _CONVERT_
  14. #define byte UCHAR
  15. #define word USHORT
  16. #define dword ULONG
  17. #define offsetof(r,f) ((size_t)&(((r*)0)->f))
  18. #define byteswap(x) ((x>>8)+((x&0xFF)<<8))
  19. #endif //_CONVERT_
  20.