浏览代码

libuv: Always include our own header first

Brad King 9 年之前
父节点
当前提交
a63aaaed05
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 3 3
      Utilities/cmlibuv/src/inet.c
  2. 3 3
      Utilities/cmlibuv/src/unix/getnameinfo.c

+ 3 - 3
Utilities/cmlibuv/src/inet.c

@@ -15,6 +15,9 @@
  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
  */
 
 
+#include "uv.h"
+#include "uv-common.h"
+
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 
 
@@ -24,9 +27,6 @@
 # include <stdint.h>
 # include <stdint.h>
 #endif
 #endif
 
 
-#include "uv.h"
-#include "uv-common.h"
-
 #define UV__INET_ADDRSTRLEN         16
 #define UV__INET_ADDRSTRLEN         16
 #define UV__INET6_ADDRSTRLEN        46
 #define UV__INET6_ADDRSTRLEN        46
 
 

+ 3 - 3
Utilities/cmlibuv/src/unix/getnameinfo.c

@@ -19,14 +19,14 @@
 * IN THE SOFTWARE.
 * IN THE SOFTWARE.
 */
 */
 
 
+#include "uv.h"
+#include "internal.h"
+
 #include <assert.h>
 #include <assert.h>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 
 
-#include "uv.h"
-#include "internal.h"
-
 
 
 static void uv__getnameinfo_work(struct uv__work* w) {
 static void uv__getnameinfo_work(struct uv__work* w) {
   uv_getnameinfo_t* req;
   uv_getnameinfo_t* req;