From cc463a7c62bc80f3df91f01992a62a1807a1603d Mon Sep 17 00:00:00 2001 From: Kadah_Coba Date: Sat, 4 Aug 2018 17:32:04 -0700 Subject: [PATCH] FIRE-22866: Add __UNIXTIME__ preprocessor macro, patch from WolfGang Senizen --- indra/newview/fslslpreproc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/newview/fslslpreproc.cpp b/indra/newview/fslslpreproc.cpp index 3637438a73..a774b17877 100644 --- a/indra/newview/fslslpreproc.cpp +++ b/indra/newview/fslslpreproc.cpp @@ -1347,6 +1347,8 @@ void FSLSLPreprocessor::start_process() ctx.add_macro_definition(def, false); def = llformat("__SHORTFILE__=\"%s\"", name.c_str()); ctx.add_macro_definition(def, false); + def = llformat("__UNIXTIME__=%i", (S32)time_corrected()); + ctx.add_macro_definition(def, false); ctx.add_macro_definition("list(...)=((list)(__VA_ARGS__))", false); ctx.add_macro_definition("float(...)=((float)(__VA_ARGS__))", false);