Skip to content

Commit

Permalink
Fixing Windows timeval issue
Browse files Browse the repository at this point in the history
  • Loading branch information
manchicken committed Jul 25, 2024
1 parent e4b816d commit 5fbeae2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/amqp_confirm_select.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@
#include "rabbitmq-c/framing.h"
#include "utils.h"

#if ((defined(_WIN32)) || (defined(__MINGW32__)) || (defined(__MINGW64__)))
#ifndef WINVER
#define WINVER 0x0502
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <winsock2.h>
#else
#include <sys/time.h>
#endif

#define SUMMARY_EVERY_US 5000

static void send_batch(amqp_connection_state_t conn, char const *queue_name,
Expand Down

0 comments on commit 5fbeae2

Please sign in to comment.