diff options
-rw-r--r-- | include/wolf/port/sys.h | 14 | ||||
-rw-r--r-- | src/port/limits.h | 4 |
2 files changed, 18 insertions, 0 deletions
diff --git a/include/wolf/port/sys.h b/include/wolf/port/sys.h index eccd98a..5a32882 100644 --- a/include/wolf/port/sys.h +++ b/include/wolf/port/sys.h @@ -304,4 +304,18 @@ /** @} */ /* @addtogroup wolf_port */ +#ifdef __PCC__ + +/* __PRETTY_FUNCTION__ is a GNU extension, no harm if we define it to _func_ + * which must be there (poluted pthreads.h header file!) + */ +#define __PRETTY_FUNCTION__ __func__ +#define _VA_LIST_DEFINED + +#define __THROW +#define __const const +#define __USER_LABEL_PREFIX__ + +#endif + #endif /* ifndef WOLF_SYS_H */ diff --git a/src/port/limits.h b/src/port/limits.h index 0d85c05..c4116c1 100644 --- a/src/port/limits.h +++ b/src/port/limits.h @@ -20,6 +20,10 @@ #include "port/sys.h" +#ifdef __PCC__ +#define PATH_MAX 255 +#else #include <limits.h> +#endif #endif /* ifndef __LIMITS_H */ |