mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-40874: Update to libmpdec-2.5.0 (GH-20652)
This commit is contained in:
parent
3ad52e366f
commit
087d612efe
38 changed files with 503 additions and 297 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2008-2016 Stefan Krah. All rights reserved.
|
||||
* Copyright (c) 2008-2020 Stefan Krah. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
@ -26,17 +26,20 @@
|
|||
*/
|
||||
|
||||
|
||||
#ifndef IO_H
|
||||
#define IO_H
|
||||
#ifndef LIBMPDEC_IO_H_
|
||||
#define LIBMPDEC_IO_H_
|
||||
|
||||
|
||||
#include <errno.h>
|
||||
#include "mpdecimal.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#if SIZE_MAX == MPD_SIZE_MAX
|
||||
#define mpd_strtossize _mpd_strtossize
|
||||
#else
|
||||
#include <errno.h>
|
||||
|
||||
static inline mpd_ssize_t
|
||||
mpd_strtossize(const char *s, char **end, int base)
|
||||
{
|
||||
|
@ -56,4 +59,4 @@ mpd_strtossize(const char *s, char **end, int base)
|
|||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
#endif /* LIBMPDEC_IO_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue