mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3:lib: Define TIME_FIXUP_CONSTANT_INT using INT64_C() macro
This is more portable than using preprocessor conditionals. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
26e704d1fa
commit
58c6e46ada
@ -30,11 +30,7 @@
|
||||
|
||||
#define NTTIME_INFINITY (NTTIME)0x8000000000000000LL
|
||||
|
||||
#if (SIZEOF_LONG == 8)
|
||||
#define TIME_FIXUP_CONSTANT_INT 11644473600L
|
||||
#elif (SIZEOF_LONG_LONG == 8)
|
||||
#define TIME_FIXUP_CONSTANT_INT 11644473600LL
|
||||
#endif
|
||||
#define TIME_FIXUP_CONSTANT_INT INT64_C(11644473600)
|
||||
|
||||
/**************************************************************
|
||||
Handle conversions between time_t and uint32, taking care to
|
||||
|
Loading…
Reference in New Issue
Block a user