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.

30 lines
814 B

  1. /***
  2. *assrt.c - assertions needed for string conversion routines
  3. *
  4. * Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Make sure that the data types used by the string conversion
  8. * routines have the right size. If this file does not compile,
  9. * the type definitions in cv.h should change appropriately.
  10. *
  11. *Revision History:
  12. * 07-25-91 GDP written
  13. *
  14. *******************************************************************************/
  15. #include <cv.h>
  16. static void assertion_test(void)
  17. {
  18. sizeof(u_char) == 1 ? 0 : 1/0,
  19. sizeof(u_short) == 2 ? 0 : 1/0,
  20. sizeof(u_long) == 4 ? 0 : 1/0,
  21. sizeof(s_char) == 1 ? 0 : 1/0,
  22. sizeof(s_short) == 2 ? 0 : 1/0,
  23. sizeof(s_long) == 4 ? 0 : 1/0;
  24. #ifdef _LDSUPPORT
  25. sizeof(long double) == 10 ? 0 : 1/0;
  26. #endif
  27. }