Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

review

  • Loading branch information...
commit 0158bc839364ce56fbcaacd58c323a65061dc5c7 1 parent 6d48b73
fantasyni fantasyni authored
6 include/pomelo-private/internal.h
@@ -3,6 +3,12 @@
3 3
4 4 #include "pomelo.h"
5 5
  6 +#ifdef _WIN32
  7 + #include <winsock2.h>
  8 +#else
  9 + #include <netinet/in.h>
  10 + #include <unistd.h>
  11 +#endif
6 12 /**
7 13 * Callback for received a handshake response from server.
8 14 *
13 include/pomelo.h
@@ -22,12 +22,6 @@ extern "C" {
22 22 # define PC_EXTERN /* nothing */
23 23 #endif
24 24
25   -#ifdef _WIN32
26   - #include <winsock2.h>
27   -#else
28   - #include <netinet/in.h>
29   -#endif
30   -
31 25 #include "uv.h"
32 26 #include "jansson.h"
33 27 #include "pomelo-private/map.h"
@@ -47,12 +41,7 @@ typedef struct pc_request_s pc_request_t;
47 41 typedef struct pc_notify_s pc_notify_t;
48 42 typedef struct pc_msg_s pc_msg_t;
49 43 typedef struct pc_pkg_parser_s pc_pkg_parser_t;
50   -
51   -#ifdef _WIN32
52   -typedef struct uv_buf_t pc_buf_t;
53   -#else
54   -typedef struct pc_buf_s pc_buf_t;
55   -#endif
  44 +typedef uv_buf_t pc_buf_t;
56 45
57 46 /**
58 47 * State machine for Pomelo package parser
1  src/client.c
@@ -2,7 +2,6 @@
2 2 #include <stdio.h>
3 3 #include <stddef.h>
4 4 #include <string.h>
5   -//#include <unistd.h>
6 5 #include "pomelo.h"
7 6 #include "pomelo-private/listener.h"
8 7 #include "pomelo-protocol/package.h"

0 comments on commit 0158bc8

Please sign in to comment.
Something went wrong with that request. Please try again.