Skip to content

Commit 1dd94bb

Browse files
committed
Fix for .c files to ensure macro guards for wildcard.
1 parent 50d60bf commit 1dd94bb

4 files changed

Lines changed: 15 additions & 7 deletions

File tree

wolfcrypt/src/port/autosar/cryif.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@
2828
#endif
2929

3030
#include <wolfssl/wolfcrypt/settings.h>
31+
32+
#ifdef WOLFSSL_AUTOSAR
33+
#ifndef NO_WOLFSSL_AUTOSAR_CRYIF
34+
3135
#include <wolfssl/version.h>
3236
#include <wolfssl/wolfcrypt/port/autosar/Csm.h>
3337
#include <wolfssl/wolfcrypt/port/autosar/CryIf.h>
3438
#include <wolfssl/wolfcrypt/port/autosar/Crypto.h>
3539

36-
#ifdef WOLFSSL_AUTOSAR
37-
#ifndef NO_WOLFSSL_AUTOSAR_CRYIF
3840

3941
#include <wolfssl/wolfcrypt/logging.h>
4042

wolfcrypt/src/port/autosar/crypto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
#endif
2626

2727
#include <wolfssl/wolfcrypt/settings.h>
28-
#include <wolfssl/wolfcrypt/port/autosar/Csm.h>
29-
#include <wolfssl/wolfcrypt/port/autosar/Crypto.h>
3028

3129
#ifdef WOLFSSL_AUTOSAR
3230
#ifndef NO_WOLFSSL_AUTOSAR_CRYPTO
3331

32+
#include <wolfssl/wolfcrypt/port/autosar/Csm.h>
33+
#include <wolfssl/wolfcrypt/port/autosar/Crypto.h>
3434
#include <wolfssl/wolfcrypt/logging.h>
3535
#include <wolfssl/wolfcrypt/aes.h>
3636
#include <wolfssl/wolfcrypt/random.h>

wolfcrypt/src/port/autosar/csm.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@
2525
#endif
2626

2727
#include <wolfssl/wolfcrypt/settings.h>
28+
29+
#ifdef WOLFSSL_AUTOSAR
30+
#ifndef NO_WOLFSSL_AUTOSAR_CSM
31+
2832
#include <wolfssl/wolfcrypt/logging.h>
2933
#include <wolfssl/version.h>
3034
#include <wolfssl/wolfcrypt/port/autosar/Csm.h>
3135
#include <wolfssl/wolfcrypt/port/autosar/CryIf.h>
3236

33-
#ifdef WOLFSSL_AUTOSAR
34-
#ifndef NO_WOLFSSL_AUTOSAR_CSM
35-
3637

3738
/* AutoSAR 4.4 */
3839
/* basic shim layer to plug in wolfSSL crypto */

wolfcrypt/src/port/autosar/test.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
#endif
2525

2626
#include <wolfssl/wolfcrypt/settings.h>
27+
28+
#ifdef WOLFSSL_AUTOSAR
29+
2730
#include <wolfssl/wolfcrypt/logging.h>
2831
#include <wolfssl/wolfcrypt/port/autosar/Csm.h>
2932
#define BLOCK_SIZE 16
@@ -428,3 +431,5 @@ int main(int argc, char* argv[])
428431
#endif /* REDIRECTION_CONFIG */
429432
return ret;
430433
}
434+
435+
#endif /* WOLFSSL_AUTOSAR */

0 commit comments

Comments
 (0)