Protect SIZE_MAX use

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18672 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtogni 2006-06-09 23:19:13 +00:00
parent 2f30f958b0
commit b6fb797e3c
2 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,10 @@
#include "bswap.h"
#ifndef SIZE_MAX
#define SIZE_MAX ((size_t)-1)
#endif
/*
* Read: the element content data ID.
* Return: the ID.

View File

@ -15,6 +15,10 @@
#include "mp_msg.h"
#include "help_mp.h"
#ifndef SIZE_MAX
#define SIZE_MAX ((size_t)-1)
#endif
URL_t*
url_new(const char* url) {
int pos1, pos2,v6addr = 0;