mirror of
https://github.com/dlang/phobos.git
synced 2025-05-09 13:02:30 +03:00
time_t and __time_t definition for 64 bit on FreeBSD
A size of time_t and __time_t is different from 32bit and 64 bit system on FreeBSD.
This commit is contained in:
parent
7f64d62af9
commit
513744080c
1 changed files with 9 additions and 2 deletions
|
@ -14,8 +14,6 @@ private import std.c.stdio;
|
||||||
|
|
||||||
alias uint fflags_t;
|
alias uint fflags_t;
|
||||||
alias int clockid_t;
|
alias int clockid_t;
|
||||||
alias int time_t;
|
|
||||||
alias int __time_t;
|
|
||||||
alias int pid_t;
|
alias int pid_t;
|
||||||
alias long off_t;
|
alias long off_t;
|
||||||
alias long blkcnt_t;
|
alias long blkcnt_t;
|
||||||
|
@ -31,6 +29,15 @@ alias uint uid_t;
|
||||||
alias ulong fsblkcnt_t;
|
alias ulong fsblkcnt_t;
|
||||||
alias ulong fsfilcnt_t;
|
alias ulong fsfilcnt_t;
|
||||||
|
|
||||||
|
version( X86 ) {
|
||||||
|
alias int time_t;
|
||||||
|
alias int __time_t;
|
||||||
|
}
|
||||||
|
else version( X86_64 ) {
|
||||||
|
alias long time_t;
|
||||||
|
alias long __time_t;
|
||||||
|
}
|
||||||
|
|
||||||
struct timespec
|
struct timespec
|
||||||
{
|
{
|
||||||
time_t tv_sec;
|
time_t tv_sec;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue