X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/90e389f6ec12e60a62c362296ffcf314feb5b03d..12b88fa193a36e0d4ed35b1912e5cf1dfe633ce6:/include/stg/message.h?ds=inline diff --git a/include/stg/message.h b/include/stg/message.h index 16fe566f..49f8c7c6 100644 --- a/include/stg/message.h +++ b/include/stg/message.h @@ -11,10 +11,9 @@ */ #include +#include #include -#include "os_int.h" - //----------------------------------------------------------------------------- struct STG_MSG_HDR { @@ -27,7 +26,7 @@ STG_MSG_HDR() showTime(0), repeat(0), repeatPeriod(0) -{}; +{} uint64_t id; unsigned ver; @@ -41,12 +40,12 @@ unsigned repeatPeriod; //----------------------------------------------------------------------------- struct STG_MSG { -STG_MSG() {}; +STG_MSG() : header(), text() {} time_t GetNextSendTime() const { return header.lastSendTime + header.repeat * 60; -}; +} STG_MSG_HDR header; std::string text;