blueloveTH 2 лет назад
Родитель
Сommit
80dfd83f51
2 измененных файлов с 5 добавлено и 0 удалено
  1. 1 0
      include/pocketpy/common.h
  2. 4 0
      include/pocketpy/str.h

+ 1 - 0
include/pocketpy/common.h

@@ -2,6 +2,7 @@
 
 #include <cmath>
 #include <cstring>
+#include <ctime>
 
 #include <stdexcept>
 #include <vector>

+ 4 - 0
include/pocketpy/str.h

@@ -153,6 +153,10 @@ struct SStream{
     void write_hex(i64);
 };
 
+#ifdef _S
+#undef _S
+#endif
+
 template<typename... Args>
 Str _S(Args&&... args) {
     SStream ss;