|
24 | 24 | #endif |
25 | 25 |
|
26 | 26 | #ifdef _WIN32 |
27 | | -# pragma warning(push) |
28 | | -# pragma warning(disable : 5105) |
| 27 | +# if !defined(__MINGW32__) |
| 28 | +# pragma warning(push) |
| 29 | +# pragma warning(disable : 5105) |
| 30 | +# endif |
29 | 31 | # include <Windows.h> |
30 | | -# pragma warning(pop) |
| 32 | +# if !defined(__MINGW32__) |
| 33 | +# pragma warning(pop) |
| 34 | +# endif |
31 | 35 | #else |
32 | 36 | # include <stdlib.h> |
33 | 37 | # include <string.h> |
@@ -166,7 +170,7 @@ int dxs_mutex_unlock(dxs_mutex_t* mutex) { |
166 | 170 | #define LOG_DATA_TRANSFER_TAG "-p" |
167 | 171 | #define TIMEOUT_TAG "-o" |
168 | 172 | #define LOG_HEARTBEAT_TAG "-b" |
169 | | -#define RECONNECT_TAG "-r" |
| 173 | +#define RECONNECT_TAG "-r" |
170 | 174 |
|
171 | 175 | // Prevents file names globbing (converting * to all files in the current dir) |
172 | 176 | #ifdef __MINGW64_VERSION_MAJOR |
@@ -619,8 +623,8 @@ int main(int argc, char* argv[]) { |
619 | 623 | "[" DUMP_PARAM_LONG_TAG " | " DUMP_PARAM_SHORT_TAG " <filename>] [" TOKEN_PARAM_SHORT_TAG |
620 | 624 | " <token>] " |
621 | 625 | "[" SUBSCRIPTION_DATA_PARAM_TAG " <subscr_data>] [" LOG_DATA_TRANSFER_TAG "] [" TIMEOUT_TAG |
622 | | - " <timeout>] [" LOG_HEARTBEAT_TAG |
623 | | - "] [" RECONNECT_TAG "]\n" |
| 626 | + " <timeout>] [" LOG_HEARTBEAT_TAG "] [" RECONNECT_TAG |
| 627 | + "]\n" |
624 | 628 | " <server address> - The DXFeed server address, e.g. demo.dxfeed.com:7300\n" |
625 | 629 | " If you want to use file instead of server data just\n" |
626 | 630 | " write there path to file e.g. path\\to\\raw.bin\n" |
@@ -730,7 +734,7 @@ int main(int argc, char* argv[]) { |
730 | 734 | } |
731 | 735 |
|
732 | 736 | dxf_initialize_logger_v2("command-line-api.log", true, true, true, log_data_transfer_flag); |
733 | | - //dxf_load_config_from_string("network.heartbeatTimeout = 11\n"); |
| 737 | + // dxf_load_config_from_string("network.heartbeatTimeout = 11\n"); |
734 | 738 |
|
735 | 739 | wprintf(L"Command line sample started.\n"); |
736 | 740 | wprintf(L"Connecting to host %hs...\n", dxfeed_host); |
|
0 commit comments