From: Joseph Sutton Date: Mon, 18 Dec 2023 21:23:14 +0000 (+1300) Subject: s3:lib: Define TIME_FIXUP_CONSTANT_INT using INT64_C() macro X-Git-Tag: talloc-2.4.2~232 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58c6e46adac2b195e3807fc10be2e42900b079fd;p=thirdparty%2Fsamba.git s3:lib: Define TIME_FIXUP_CONSTANT_INT using INT64_C() macro This is more portable than using preprocessor conditionals. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/lib/time.c b/source3/lib/time.c index 420b5f700d9..0d44a08d3f3 100644 --- a/source3/lib/time.c +++ b/source3/lib/time.c @@ -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