Merge pull request #14 from jcelerier/master

linux: sometimes <limits.h> does not define PATH_MAX, use <linux/limits.h> instead
This commit is contained in:
Gregory Pakosz 2018-09-07 11:27:16 +02:00 committed by GitHub
commit 6d73e7898e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,11 @@ int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length)
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#if defined(__linux__)
#include <linux/limits.h>
#else
#include <limits.h> #include <limits.h>
#endif
#ifndef __STDC_FORMAT_MACROS #ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif #endif