Stefan Krah
40e700ad04
bpo-40878: xlc cannot handle C99 extern inline. (GH-21887)
...
This applies to the default "extc99" mode. Python does not compile with "stdc99".
2020-08-15 16:06:21 +02:00
Stefan Krah
9b9f158275
bpo-41369 Update to libmpdec-2.5.1: new features (GH-21593)
2020-07-22 21:54:42 +02:00
Felix Yan
015efdbef7
bpo-41302: Fix build with system libmpdec (GH-21481)
...
Move definition of UNUSED from modified headers of libmpdec to
_decimal.c itself. This makes the vendored source closer to the
standalone library and fixes build with --with-system-libmpdec.
Tested to build fine with either system libmpdec or the vendored one.
2020-07-15 14:14:11 +02:00
Lawrence D'Anna
604d95e235
bpo-41100: fix _decimal for arm64 Mac OS (GH-21228)
...
Patch by Lawrence Danna.
2020-06-30 11:15:46 +02:00
Stefan Krah
087d612efe
bpo-40874: Update to libmpdec-2.5.0 (GH-20652)
2020-06-05 19:43:01 +02:00
Stefan Krah
90930e6545
bpo-39576: Prevent memory error for overly optimistic precisions (GH-18581)
2020-02-21 01:52:47 +01:00
Stefan Krah
f117d871c4
Rename memory.c to mpalloc.c for consistency with the header file. ( #14687 )
2019-07-10 18:27:38 +02:00
Stefan Krah
4749dbe54c
Really remove vcstdint.h. ( #14686 )
2019-07-10 17:55:48 +02:00
Victor Stinner
3b1cba3701
bpo-35059, libmpdec: Add missing EXTINLINE in mpdecimal.h (GH-10128)
...
Declare functions with EXTINLINE:
* mpd_del()
* mpd_uint_zero()
* mpd_qresize()
* mpd_qresize_zero()
* mpd_minalloc()
These functions are implemented with "inline" or "ALWAYS_INLINE", but
declared without inline which cause linker error on Visual Studio in
Debug mode when using /Ob1.
2018-10-26 17:06:57 +02:00
Serhiy Storchaka
bfe4fd5f2e
Fix some warnings produced by different compilers. ( #5593 )
2018-02-09 17:31:26 +02:00
Stefan Krah
d73a960c57
bpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. ( #3142 )
2017-08-18 21:39:32 +02:00
Steve Dower
a439191efa
Fix some warnings from MSVC
2016-09-06 19:09:15 -07:00
Benjamin Peterson
bbeedc261f
include (now) int standard headers
2016-09-06 12:41:06 -07:00
Benjamin Peterson
ae3869c71e
do not need vcstdint.h anymore
2016-09-06 12:07:53 -07:00
Stefan Krah
8e1da5823b
Issue #26846 : Workaround for non-standard stdlib.h on Android.
2016-04-25 22:48:42 +02:00
Stefan Krah
66e9d03bf4
Issue #26621 : Update libmpdec version and remove unnecessary test case.
2016-03-23 20:50:10 +01:00
Stefan Krah
5f6ccc787e
Issue #26139 : libmpdec: disable /W4 warning (non-standard dllimport behavior).
2016-01-17 12:28:43 +01:00
Zachary Ware
fda673d59f
Issue #24974 : Force fp-model precice in mpdecimal.c on Windows
...
As suggested by Steve Dower and approved by Stefan Krah.
2015-09-03 11:52:15 -05:00
Stefan Krah
cf26115651
Introduce and check for MPD_VERSION_HEX for precise management of builds
...
with an external libmpdec.
2014-08-26 21:31:47 +02:00
Stefan Krah
298131a448
Issue #22090 : Fix '%' formatting for infinities and NaNs.
2014-08-26 20:46:49 +02:00
Stefan Krah
0455c3fd28
Whitespace.
2014-01-04 13:03:48 +01:00
Stefan Krah
1f1ec12db9
Issue #19986 : Avoid an incorrect warning of older gcc versions.
2013-12-15 20:45:08 +01:00
Stefan Krah
01e5f800b4
Fix C++ header usage. This __STDC_LIMIT_MACROS scheme can still be subverted
...
by including stdint.h before mpdecimal.h. In that case the only option left
is to compile with -D_STDC_LIMIT_MACROS.
2013-12-14 12:58:09 +01:00
Stefan Krah
da12adac10
Do not discard const qualifier without a reason.
2013-12-12 18:51:51 +01:00
Stefan Krah
37d4e0be3d
Fix two typos.
2013-12-08 20:08:32 +01:00