OpenSDE Packages Database (without history before r20070)
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.

89 lines
2.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../dietlibc/stdint.patch
  5. # Copyright (C) 2007 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./include/stdint.h.orig 2007-07-18 19:35:47.000000000 -0400
  17. +++ ./include/stdint.h 2007-07-18 19:51:06.000000000 -0400
  18. @@ -26,28 +26,6 @@
  19. typedef uint64_t uint_fast64_t;
  20. -
  21. -/* The ISO C99 standard specifies that in C++ implementations these
  22. - should only be defined if explicitly requested. */
  23. -#if !defined __cplusplus || defined __STDC_LIMIT_MACROS
  24. -
  25. -/* FIXME: missing are
  26. - INTx_MIN, INTx_MAX, UINTx_MAX
  27. - INT_LEASTx_MIN, INT_LEASTx_MAX, UINT_LEASTx_MAX
  28. - INT_FASTx_MIN, INT_FASTx_MAX, UINT_FASTx_MAX
  29. - INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX
  30. - INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX
  31. - PTRDIFF_MIN, PTRDIFF_MAX
  32. - SIG_ATOMIC_MIN, SIG_ATOMIC_MAX
  33. - SIZE_MAX
  34. - WCHAR_MIN, WCHAR_MAX
  35. - WINT_MIN, WINT_MAX
  36. -*/
  37. -
  38. -#endif /* C++ && limit macros */
  39. -
  40. -
  41. -
  42. /* The ISO C99 standard specifies that in C++ implementations these
  43. should only be defined if explicitly requested. */
  44. #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
  45. @@ -83,6 +61,41 @@
  46. #endif /* C++ && constant macros */
  47. +/* The ISO C99 standard specifies that in C++ implementations these
  48. + should only be defined if explicitly requested. */
  49. +#if !defined __cplusplus || defined __STDC_LIMIT_MACROS
  50. +
  51. +/* Minimum of signed integral types. */
  52. +# define INT8_MIN (-128)
  53. +# define INT16_MIN (-32767-1)
  54. +# define INT32_MIN (-2147483647-1)
  55. +# define INT64_MIN (-INT64_C(9223372036854775807)-1)
  56. +/* Maximum of signed integral types. */
  57. +# define INT8_MAX (127)
  58. +# define INT16_MAX (32767)
  59. +# define INT32_MAX (2147483647)
  60. +# define INT64_MAX (INT64_C(9223372036854775807))
  61. +
  62. +/* Maximum of unsigned integral types. */
  63. +# define UINT8_MAX (255)
  64. +# define UINT16_MAX (65535)
  65. +# define UINT32_MAX (4294967295U)
  66. +# define UINT64_MAX (UINT64_C(18446744073709551615))
  67. +
  68. +/* FIXME: missing are
  69. + INT_LEASTx_MIN, INT_LEASTx_MAX, UINT_LEASTx_MAX
  70. + INT_FASTx_MIN, INT_FASTx_MAX, UINT_FASTx_MAX
  71. + INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX
  72. + INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX
  73. + PTRDIFF_MIN, PTRDIFF_MAX
  74. + SIG_ATOMIC_MIN, SIG_ATOMIC_MAX
  75. + SIZE_MAX
  76. + WCHAR_MIN, WCHAR_MAX
  77. + WINT_MIN, WINT_MAX
  78. +*/
  79. +
  80. +#endif /* C++ && limit macros */
  81. +
  82. __END_DECLS
  83. #endif