mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-11-29 18:38:25 -05:00
26 lines
382 B
C
26 lines
382 B
C
|
/*
|
||
|
* Public domain
|
||
|
* limits.h compatibility shim
|
||
|
*/
|
||
|
|
||
|
#ifdef _MSC_VER
|
||
|
#include <../include/limits.h>
|
||
|
#if _MSC_VER >= 1900
|
||
|
#include <../ucrt/stdlib.h>
|
||
|
#else
|
||
|
#include <../include/stdlib.h>
|
||
|
#endif
|
||
|
#ifndef PATH_MAX
|
||
|
#define PATH_MAX _MAX_PATH
|
||
|
#endif
|
||
|
#else
|
||
|
#include_next <limits.h>
|
||
|
#endif
|
||
|
|
||
|
#ifdef __hpux
|
||
|
#include <sys/param.h>
|
||
|
#ifndef PATH_MAX
|
||
|
#define PATH_MAX MAXPATHLEN
|
||
|
#endif
|
||
|
#endif
|