History

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.

Mark Gaiser committed 4 years ago

Commit ea84eb21 parent bf6735e1 file · +6 −0Browse files

Unified · Split

libavformat/ipfsgateway.c+6−0
@@ -25,6 +25,12 @@ · 24 unmodified lines
25#include "os_support.h"25#include "os_support.h"
26#include "url.h"26#include "url.h"
27 27
28// Define the posix PATH_MAX if not there already.
29// This fixes a compile issue for MSVC.
30#ifndef PATH_MAX
31#define PATH_MAX 4096
32#endif
33
28typedef struct IPFSGatewayContext {34typedef struct IPFSGatewayContext {
29 AVClass *class;35 AVClass *class;
30 URLContext *inner;36 URLContext *inner;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t