mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-06 12:37:44 +00:00
avformat/ipfsgateway: define PATH_MAX
PATH_MAX is posix. Some compilers (MSVC) don't define this thus failing to compile the ipfsgateway file. Defining it fixes the compile. Signed-off-by: Mark Gaiser <markg85@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
bf6735e945
commit
ea84eb2db1
@ -25,6 +25,12 @@
|
|||||||
#include "os_support.h"
|
#include "os_support.h"
|
||||||
#include "url.h"
|
#include "url.h"
|
||||||
|
|
||||||
|
// Define the posix PATH_MAX if not there already.
|
||||||
|
// This fixes a compile issue for MSVC.
|
||||||
|
#ifndef PATH_MAX
|
||||||
|
#define PATH_MAX 4096
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct IPFSGatewayContext {
|
typedef struct IPFSGatewayContext {
|
||||||
AVClass *class;
|
AVClass *class;
|
||||||
URLContext *inner;
|
URLContext *inner;
|
||||||
|
Loading…
Reference in New Issue
Block a user