X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fwin32%2Finternals%2F_PDCLIB_config.h;h=57a2d29f6a59b13d11d3c35c0153374038408005;hb=0e4e0ed2c33d36149cdd1bf0e67cfb630c6c8210;hp=7caa7cbe062a12de2e0ee4f8bda607ff505baf9b;hpb=3c3af65aab358b24abfbe311e6e56ce9387b1357;p=pdclib.old diff --git a/platform/win32/internals/_PDCLIB_config.h b/platform/win32/internals/_PDCLIB_config.h index 7caa7cb..57a2d29 100644 --- a/platform/win32/internals/_PDCLIB_config.h +++ b/platform/win32/internals/_PDCLIB_config.h @@ -162,6 +162,7 @@ struct _PDCLIB_lldiv_t XX: Windows requires wchar_t be an unsigned short, but this is not compliant. */ +#define _PDCLIB_wint signed short #define _PDCLIB_wchar unsigned short #define _PDCLIB_WCHAR USHRT @@ -219,6 +220,19 @@ struct _PDCLIB_imaxdiv_t #define _PDCLIB_clock double #define _PDCLIB_CLOCKS_PER_SEC 1000000 +/* : TIME_UTC + * + * The TIME_UTC parameter is passed to the timespec_get function in order to get + * the system time in UTC since an implementation defined epoch (not necessarily + * the same as that used for time_t). That said, on POSIX the obvious + * implementation of timespec_get for TIME_UTC is to wrap + * clock_gettime(CLOCK_REALTIME, ...), which is defined as time in UTC since the + * same epoch. + * + * This may be any non-zero integer value. + */ +#define _PDCLIB_TIME_UTC 1 + /* -------------------------------------------------------------------------- */ /* Floating Point */ /* -------------------------------------------------------------------------- */ @@ -327,9 +341,6 @@ struct _PDCLIB_imaxdiv_t /* I/O ---------------------------------------------------------------------- */ -/* The type of the file descriptor returned by _PDCLIB_open(). */ -typedef void * _PDCLIB_fd_t; - /* The value (of type _PDCLIB_fd_t) returned by _PDCLIB_open() if the operation failed. */