Skip to content

Commit

Permalink
aws_apple_network_framework.h should only be used with Apple OS
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Nov 6, 2024
1 parent 6836232 commit b4c9306
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/aws/io/private/aws_apple_network_framework.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#ifdef AWS_OS_APPLE
/* It's ok to include external headers because this is a PRIVATE header file */
# include <Security/Security.h>
# include <aws/common/mutex.h>
# include <aws/common/thread.h>
# include <dispatch/dispatch.h>

struct secure_transport_ctx {
struct aws_tls_ctx ctx;
CFAllocatorRef wrapped_allocator;
Expand All @@ -21,12 +25,6 @@ struct secure_transport_ctx {
bool verify_peer;
};

#endif /* AWS_OS_APPLE */

#include <aws/common/mutex.h>
#include <aws/common/thread.h>
#include <dispatch/dispatch.h>

struct dispatch_scheduling_state {
/**
* Let's us skip processing an iteration task if one is already in the middle of executing
Expand Down Expand Up @@ -68,4 +66,6 @@ struct dispatch_loop {
bool is_destroying;
};

#endif /* AWS_OS_APPLE */

#endif /* #ifndef AWS_IO_PRIVATE_AWS_APPLE_NETWORK_FRAMEWORK_H */

0 comments on commit b4c9306

Please sign in to comment.