X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Finternals%2F_PDCLIB_config.h;h=1e34cc024527c5200dab8bb92e0dbe0df406273e;hb=41deaf7c54dafcea0c9afbfad7d7ab948504ca1e;hp=0717adb30cb28238f170faa26dfc717ade86acd0;hpb=2b793d7f6e3a8e37229e761ef4c92961bd0f686a;p=pdclib diff --git a/platform/example/internals/_PDCLIB_config.h b/platform/example/internals/_PDCLIB_config.h old mode 100644 new mode 100755 index 0717adb..1e34cc0 --- a/platform/example/internals/_PDCLIB_config.h +++ b/platform/example/internals/_PDCLIB_config.h @@ -45,7 +45,7 @@ /* first, before going to lengths about it. */ /* -------------------------------------------------------------------------- */ -/* Comment out (or delete) the line below if your 'char' type is unsigned. */ +/* Set to 0 if your 'char' type is unsigned. */ #define _PDCLIB_CHAR_SIGNED 1 /* Width of the integer types short, int, long, and long long, in bytes. */ @@ -145,8 +145,8 @@ struct _PDCLIB_lldiv_t /* Large enough an integer to hold all character codes of the largest supported locale. */ -#define _PDCLIB_wchar unsigned short -#define _PDCLIB_WCHAR USHRT +#define _PDCLIB_wchar unsigned int +#define _PDCLIB_WCHAR UINT /* (Signed) integer type capable of taking the (cast) value of a void *, and having the value cast back to void *, comparing equal to the original. @@ -170,6 +170,19 @@ struct _PDCLIB_imaxdiv_t _PDCLIB_intmax rem; }; +/* -------------------------------------------------------------------------- */ +/* Time types */ +/* -------------------------------------------------------------------------- */ + +/* See for a couple of comments on these types and their semantics. */ + +#define _PDCLIB_time long + +#define _PDCLIB_clock long +#define _PDCLIB_CLOCKS_PER_SEC 1000000 + +#define _PDCLIB_TIME_UTC 1 + /* -------------------------------------------------------------------------- */ /* Floating Point */ /* -------------------------------------------------------------------------- */ @@ -219,7 +232,7 @@ struct _PDCLIB_imaxdiv_t your compiler. */ -#ifdef __i386 +#if defined( __i386 ) /* The following generic implementation works only for pure stack-based architectures, and only if arguments are aligned to pointer @@ -235,7 +248,7 @@ typedef char * _PDCLIB_va_list; #define _PDCLIB_va_end( ap ) ( (ap) = (void *)0, (void)0 ) #define _PDCLIB_va_start( ap, parmN ) ( (ap) = (char *) &parmN + ( _PDCLIB_va_round(parmN) ), (void)0 ) -#elif __x86_64 +#elif defined( __x86_64 ) /* No way to cover x86_64 with a generic implementation, as it uses register- based parameter passing. Using the GCC builtins here. @@ -384,4 +397,9 @@ typedef int _PDCLIB_fd_t; /* Default is 4 (0, ERANGE, EDOM, EILSEQ). */ #define _PDCLIB_ERRNO_MAX 4 +#ifdef __CYGWIN__ +typedef unsigned int wint_t; +#endif + + #endif