Skip to content

Commit 71d0063

Browse files
committed
Move #pragma weak g_client after declaration
Move the pragma weak after the declaration in an attempt to improve compatibility.
1 parent 59f51e3 commit 71d0063

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

erpc_c/setup/erpc_arbitrated_client_setup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ using namespace erpc;
3232

3333
// global client variables
3434
static ManuallyConstructed<ArbitratedClientManager> s_client;
35-
#pragma weak g_client
3635
ClientManager *g_client;
36+
#pragma weak g_client
3737

3838
static ManuallyConstructed<BasicCodecFactory> s_codecFactory;
3939
static ManuallyConstructed<TransportArbitrator> s_arbitrator;

erpc_c/setup/erpc_client_setup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ using namespace erpc;
3030

3131
// global client variables
3232
static ManuallyConstructed<ClientManager> s_client;
33-
#pragma weak g_client
3433
ClientManager *g_client;
34+
#pragma weak g_client
3535
static ManuallyConstructed<BasicCodecFactory> s_codecFactory;
3636
static ManuallyConstructed<Crc16> s_crc16;
3737

0 commit comments

Comments
 (0)