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.

32 lines
566 B

  1. /***
  2. *minmax.h - familiar min & max macros
  3. *
  4. * Copyright (c) 1985-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Defines min and max macros.
  8. *
  9. * [Public]
  10. *
  11. *Revision History:
  12. * 03-19-96 JWM new file, taken from windef.h.
  13. * 02-24-97 GJF Detab-ed.
  14. *
  15. ****/
  16. #if _MSC_VER > 1000 /*IFSTRIP=IGN*/
  17. #pragma once
  18. #endif
  19. #ifndef _INC_MINMAX
  20. #define _INC_MINMAX
  21. #ifndef max
  22. #define max(a,b) (((a) > (b)) ? (a) : (b))
  23. #endif
  24. #ifndef min
  25. #define min(a,b) (((a) < (b)) ? (a) : (b))
  26. #endif
  27. #endif