define PATH_MAX if not defined by limits.h

This commit is contained in:
Clifford Wolf 2016-10-11 12:12:09 +02:00
parent 11130d581d
commit 59508c99b4
1 changed files with 5 additions and 0 deletions

View File

@ -64,6 +64,7 @@
#include <string.h>
#include <stdint.h>
#include <stdio.h>
#include <limits.h>
#ifndef _YOSYS_
# error It looks like you are trying to build Yosys without the config defines set. \
@ -100,6 +101,10 @@
# endif
#endif
#ifndef PATH_MAX
# define PATH_MAX 4096
#endif
#define PRIVATE_NAMESPACE_BEGIN namespace {
#define PRIVATE_NAMESPACE_END }
#define YOSYS_NAMESPACE_BEGIN namespace Yosys {