Browse Source

compile fixes

Juan Linietsky 9 năm trước cách đây
mục cha
commit
2769da7744
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      core/ustring.cpp
  2. 1 1
      platform/x11/os_x11.cpp

+ 1 - 1
core/ustring.cpp

@@ -3096,7 +3096,7 @@ String String::http_escape() const {
             res += ord;
         } else {
             char h_Val[3];
-			_snprintf(h_Val, 3, "%.2X", ord);
+			snprintf(h_Val, 3, "%.2X", ord);
             res += "%";
             res += h_Val;
         }

+ 1 - 1
platform/x11/os_x11.cpp

@@ -34,7 +34,7 @@
 #include <stdlib.h>
 #include "print_string.h"
 #include "servers/physics/physics_server_sw.h"
-
+#include "errno.h"
 
 #include "X11/Xutil.h"