]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/gettime.h
Fix unnecessary exception use in Map::isNodeUnderground
[dragonfireclient.git] / src / gettime.h
index 4d5a02e1e253cfff34e0e7f5726f7959b6553055..66efef1d71d02005b0503f6864a35f83dedc11cd 100644 (file)
@@ -17,11 +17,9 @@ 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
@@ -42,5 +40,3 @@ inline std::string getTimestamp()
        strftime(cs, 20, "%Y-%m-%d %H:%M:%S", tm);
        return cs;
 }
-
-#endif