PATH_MAX is posix. Some compilers (MSVC) don't define this thus failing to compile the ipfsgateway file. Defining it fixes the compile.
Unified · Split
| @@ -25,6 +25,12 @@ · 24 unmodified lines | ||
| 25 | 25 | #include "os_support.h" |
| 26 | 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 | + | |
| 28 | 34 | typedef struct IPFSGatewayContext { |
| 29 | 35 | AVClass *class; |
| 30 | 36 | URLContext *inner; |