bpo-40874: Update to libmpdec-2.5.0 (GH-20652)

This commit is contained in:
Stefan Krah 2020-06-05 19:43:01 +02:00 committed by GitHub
parent 3ad52e366f
commit 087d612efe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 503 additions and 297 deletions

View file

@ -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_ */