Source code of Windows XP (NT5)
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.

48 lines
1.0 KiB

  1. /***
  2. *stddef.h - definitions/declarations for common constants, types, variables
  3. *
  4. * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file contains definitions and declarations for some commonly
  8. * used constants, types, and variables.
  9. * [ANSI]
  10. *
  11. *******************************************************************************/
  12. #ifndef NO_EXT_KEYS /* extensions enabled */
  13. #define _CDECL cdecl
  14. #define _NEAR near
  15. #else /* extensions not enabled */
  16. #define _CDECL
  17. #define _NEAR
  18. #endif /* NO_EXT_KEYS */
  19. /* define NULL pointer value */
  20. #if (defined(M_I86SM) || defined(M_I86MM))
  21. #define NULL 0
  22. #elif (defined(M_I86CM) || defined(M_I86LM) || defined(M_I86HM))
  23. #define NULL 0L
  24. #endif
  25. /* declare reference to errno */
  26. extern int _NEAR _CDECL errno;
  27. /* define the implementation dependent size types */
  28. #ifndef _PTRDIFF_T_DEFINED
  29. typedef int ptrdiff_t;
  30. #define _PTRDIFF_T_DEFINED
  31. #endif
  32. #ifndef _SIZE_T_DEFINED
  33. typedef unsigned int size_t;
  34. #define _SIZE_T_DEFINED
  35. #endif