]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/gettime.h
Fix formspec list spacing (#10861)
[dragonfireclient.git] / src / gettime.h
index a93eee38753aa0f394f1ba07ff42587de525398f..66efef1d71d02005b0503f6864a35f83dedc11cd 100644 (file)
@@ -17,14 +17,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef GETTIME_HEADER
-#define GETTIME_HEADER
+#pragma once
 
-#include "irrlichttypes.h"
-#include <time.h>
+#include <ctime>
 #include <string>
 
-
 enum TimePrecision
 {
        PRECISION_SECONDS,
@@ -33,7 +30,6 @@ enum TimePrecision
        PRECISION_NANO
 };
 
-
 inline std::string getTimestamp()
 {
        time_t t = time(NULL);
@@ -44,5 +40,3 @@ inline std::string getTimestamp()
        strftime(cs, 20, "%Y-%m-%d %H:%M:%S", tm);
        return cs;
 }
-
-#endif