We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b3414 commit cfe12dbCopy full SHA for cfe12db
async_mysql/main.cpp
@@ -13,8 +13,10 @@
13
14
#ifdef _WIN32
15
#include <Winsock2.h>
16
+typedef SOCKET fd_t;
17
#else
18
#include <sys/select.h>
19
+typedef int fd_t;
20
#endif /* _WIN32 */
21
22
typedef struct mysql_context_s {
@@ -43,14 +45,6 @@ int hand_times = 0;
43
45
// ========================================================
44
46
// select
47
-#ifdef _WIN32
-typedef SOCKET fd_t;
48
-#define __TACOPIE_INVALID_FD INVALID_SOCKET
49
-#else
50
-typedef int fd_t;
51
-#define __TACOPIE_INVALID_FD -1
52
-#endif /* _WIN32 */
53
-
54
fd_set m_rd_set;
55
fd_set m_wr_set;
56
std::unordered_map<fd_t, mysql_context_t*> m_tracked_sockets;
0 commit comments