]> git.stg.codes - stg.git/blobdiff - include/stg/message.h
Fix build on OSX.
[stg.git] / include / stg / message.h
index 16fe566f662ef8b833c2df13d5a54132f29fc5e8..49f8c7c6f43a0ed858ae6424fb29791d2359a9a2 100644 (file)
  */
 
 #include <ctime>
+#include <cstdint>
 #include <string>
 
-#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;