Skip to content

Commit 270f096

Browse files
authored
change #if _MSC_VER to #ifdef _MSC_VER (#427)
1 parent 9989461 commit 270f096

16 files changed

+16
-16
lines changed

source/connection.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <aws/io/socket.h>
2121
#include <aws/io/tls_channel_handler.h>
2222

23-
#if _MSC_VER
23+
#ifdef _MSC_VER
2424
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
2525
# pragma warning(disable : 4232) /* function pointer to dll symbol */
2626
#endif

source/connection_manager.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <aws/common/ref_count.h>
2626
#include <aws/common/string.h>
2727

28-
#if _MSC_VER
28+
#ifdef _MSC_VER
2929
# pragma warning(disable : 4232) /* function pointer to dll symbol */
3030
#endif
3131

source/h1_connection.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#include <inttypes.h>
1717

18-
#if _MSC_VER
18+
#ifdef _MSC_VER
1919
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
2020
#endif
2121

source/h2_connection.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <aws/common/clock.h>
1414
#include <aws/common/logging.h>
1515

16-
#if _MSC_VER
16+
#ifdef _MSC_VER
1717
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
1818
#endif
1919

source/h2_frames.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include <inttypes.h>
1515

16-
#if _MSC_VER
16+
#ifdef _MSC_VER
1717
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
1818
#endif
1919

source/http2_stream_manager.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include <inttypes.h>
2323

24-
#if _MSC_VER
24+
#ifdef _MSC_VER
2525
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
2626
#endif
2727

source/proxy_connection.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <aws/io/tls_channel_handler.h>
1919
#include <aws/io/uri.h>
2020

21-
#if _MSC_VER
21+
#ifdef _MSC_VER
2222
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
2323
# pragma warning(disable : 4232) /* function pointer to dll symbol */
2424
#endif

source/request_response.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <aws/io/logging.h>
1515
#include <aws/io/stream.h>
1616

17-
#if _MSC_VER
17+
#ifdef _MSC_VER
1818
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
1919
#endif
2020

source/websocket.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include <inttypes.h>
2020

21-
#if _MSC_VER
21+
#ifdef _MSC_VER
2222
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
2323
#endif
2424

source/websocket_bootstrap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#include <inttypes.h>
1919

20-
#if _MSC_VER
20+
#ifdef _MSC_VER
2121
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
2222
#endif
2323

tests/test_connection.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <aws/io/tls_channel_handler.h>
2323
#include <aws/testing/aws_test_harness.h>
2424

25-
#if _MSC_VER
25+
#ifdef _MSC_VER
2626
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
2727
#endif
2828

tests/test_h1_client.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <aws/io/stream.h>
1313
#include <aws/testing/io_testing_channel.h>
1414

15-
#if _MSC_VER
15+
#ifdef _MSC_VER
1616
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
1717
#endif
1818

tests/test_h1_server.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include <aws/testing/io_testing_channel.h>
2424

25-
#if _MSC_VER
25+
#ifdef _MSC_VER
2626
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
2727
#endif
2828

tests/test_websocket_bootstrap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <aws/io/uri.h>
1212
#include <aws/testing/aws_test_harness.h>
1313

14-
#if _MSC_VER
14+
#ifdef _MSC_VER
1515
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
1616
#endif
1717

tests/test_websocket_decoder.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <aws/io/logging.h>
99
#include <aws/testing/aws_test_harness.h>
1010

11-
#if _MSC_VER
11+
#ifdef _MSC_VER
1212
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
1313
#endif
1414

tests/test_websocket_handler.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <aws/io/logging.h>
1111
#include <aws/testing/io_testing_channel.h>
1212

13-
#if _MSC_VER
13+
#ifdef _MSC_VER
1414
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
1515
#endif
1616

0 commit comments

Comments
 (0)