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
2525 #include "os_support.h"
2626 #include "url.h"
2727
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+
2834 typedef struct IPFSGatewayContext {
2935 AVClass *class;
3036 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