Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

review

  • Loading branch information...
commit 0158bc839364ce56fbcaacd58c323a65061dc5c7 1 parent 6d48b73
@fantasyni fantasyni authored
View
6 include/pomelo-private/internal.h
@@ -3,6 +3,12 @@
#include "pomelo.h"
+#ifdef _WIN32
+ #include <winsock2.h>
+#else
+ #include <netinet/in.h>
+ #include <unistd.h>
+#endif
/**
* Callback for received a handshake response from server.
*
View
13 include/pomelo.h
@@ -22,12 +22,6 @@ extern "C" {
# define PC_EXTERN /* nothing */
#endif
-#ifdef _WIN32
- #include <winsock2.h>
-#else
- #include <netinet/in.h>
-#endif
-
#include "uv.h"
#include "jansson.h"
#include "pomelo-private/map.h"
@@ -47,12 +41,7 @@ typedef struct pc_request_s pc_request_t;
typedef struct pc_notify_s pc_notify_t;
typedef struct pc_msg_s pc_msg_t;
typedef struct pc_pkg_parser_s pc_pkg_parser_t;
-
-#ifdef _WIN32
-typedef struct uv_buf_t pc_buf_t;
-#else
-typedef struct pc_buf_s pc_buf_t;
-#endif
+typedef uv_buf_t pc_buf_t;
/**
* State machine for Pomelo package parser
View
1  src/client.c
@@ -2,7 +2,6 @@
#include <stdio.h>
#include <stddef.h>
#include <string.h>
-//#include <unistd.h>
#include "pomelo.h"
#include "pomelo-private/listener.h"
#include "pomelo-protocol/package.h"
Please sign in to comment.
Something went wrong with that request. Please try again.