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.

28 lines
467 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. ****/
  12. #if _MSC_VER > 1000
  13. #pragma once
  14. #endif
  15. #ifndef _INC_MINMAX
  16. #define _INC_MINMAX
  17. #ifndef max
  18. #define max(a,b) (((a) > (b)) ? (a) : (b))
  19. #endif
  20. #ifndef min
  21. #define min(a,b) (((a) < (b)) ? (a) : (b))
  22. #endif
  23. #endif