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.

51 lines
1.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-1999.
  5. //
  6. // File: U P D E F I N E . H
  7. //
  8. // Contents: Very generic defines. Don't throw non-generic crap
  9. // in here!
  10. //
  11. // Notes: Pollute this under penalty of death.
  12. //
  13. // Author: jeffspr 20 Sep 1997
  14. //
  15. //----------------------------------------------------------------------------
  16. #pragma once
  17. #ifndef _UPDEFINE_H_
  18. #define _UPDEFINE_H_
  19. #define BEGIN_CONST_SECTION data_seg(".rdata")
  20. #define END_CONST_SECTION data_seg()
  21. #define celems(_x) (sizeof(_x) / sizeof(_x[0]))
  22. #if defined(_M_IA64) || defined(_M_ALPHA) || defined(_M_MRX000) || defined(_M_PPC)
  23. #ifdef NOTHROW
  24. #undef NOTHROW
  25. #endif
  26. #define NOTHROW
  27. #else
  28. #ifdef NOTHROW
  29. #undef NOTHROW
  30. #endif
  31. #define NOTHROW __declspec(nothrow)
  32. #endif
  33. // Defines for C source files including us.
  34. //
  35. #ifndef __cplusplus
  36. #ifndef inline
  37. #define inline __inline
  38. #endif
  39. #endif
  40. #endif // _NCDEFINE_H_