diff options
-rw-r--r-- | include/wolf/port/sys.h | 6 | ||||
-rw-r--r-- | src/port/sys_internal.h | 21 |
2 files changed, 23 insertions, 4 deletions
diff --git a/include/wolf/port/sys.h b/include/wolf/port/sys.h index 4f45e07..3bbd7a6 100644 --- a/include/wolf/port/sys.h +++ b/include/wolf/port/sys.h @@ -175,10 +175,8 @@ #define _XOPEN_SOURCE 600 #define __EXTENSIONS__ #endif -/* TODO: check this, I don't think Solaris 8 has a working - * snprintf! */ -#define HAVE_SNPRINTF -#define HAVE_VSNPRINTF +/* Solaris 8 has a snprintf, but it doesn't work for all C99 features, + * e.g. %zd for size_t */ #define HAVE_STRDUP #define HAVE_ENUM_BOOL #define HAVE_STRCASECMP diff --git a/src/port/sys_internal.h b/src/port/sys_internal.h index cd14be4..340ecd8 100644 --- a/src/port/sys_internal.h +++ b/src/port/sys_internal.h @@ -92,6 +92,27 @@ #if OS_MINOR_VERSION == 8 #define HAVE_LOCK_F #define HAVE_LOCALTIME_R +/* for *printf substitutes */ +#define TEST_SNPRINTF 0 +#define HAVE_STDARG_H 1 +#define HAVE_STDDEF_H 0 +#define HAVE_STDINT_H 0 +#define HAVE_STDLIB_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_LOCALE_H 1 +#define HAVE_LOCALECONV 1 +#define HAVE_LCONV_DECIMAL_POINT 1 +#define HAVE_LCONV_THOUSANDS_SEP 1 +#define HAVE_LONG_DOUBLE 1 +#define HAVE_LONG_LONG_INT 1 +#define HAVE_UNSIGNED_LONG_LONG_INT 1 +#define HAVE_INTMAX_T 1 +#define HAVE_UINTMAX_T 1 +#define HAVE_UINTPTR_T 1 +#define HAVE_PTRDIFF_T 1 +#define HAVE_VA_COPY 0 +#define HAVE___VA_COPY 0 #else #if OS_MINOR_VERSION == 10 #define HAVE_LOCK_F |