mirror of https://github.com/mpv-player/mpv
Protect SIZE_MAX use
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18672 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2f30f958b0
commit
b6fb797e3c
|
@ -14,6 +14,10 @@
|
||||||
#include "bswap.h"
|
#include "bswap.h"
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef SIZE_MAX
|
||||||
|
#define SIZE_MAX ((size_t)-1)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Read: the element content data ID.
|
* Read: the element content data ID.
|
||||||
* Return: the ID.
|
* Return: the ID.
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
#include "mp_msg.h"
|
#include "mp_msg.h"
|
||||||
#include "help_mp.h"
|
#include "help_mp.h"
|
||||||
|
|
||||||
|
#ifndef SIZE_MAX
|
||||||
|
#define SIZE_MAX ((size_t)-1)
|
||||||
|
#endif
|
||||||
|
|
||||||
URL_t*
|
URL_t*
|
||||||
url_new(const char* url) {
|
url_new(const char* url) {
|
||||||
int pos1, pos2,v6addr = 0;
|
int pos1, pos2,v6addr = 0;
|
||||||
|
|
Loading…
Reference in New Issue