Skip to content

Commit c0b6da3

Browse files
author
Rich Evans
committed
add missing checks to check_config
1 parent 4c09114 commit c0b6da3

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

include/polarssl/check_config.h

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,68 @@
198198
#error "POLARSSL_PKCS11_C defined, but not all prerequisites"
199199
#endif
200200

201+
#if defined(POLARSSL_PLATFORM_EXIT_ALT) && !defined(POLARSSL_PLATFORM_C)
202+
#error "POLARSSL_PLATFORM_EXIT_ALT defined, but not all prerequisites"
203+
#endif
204+
205+
#if defined(POLARSSL_PLATFORM_FPRINTF_ALT) && !defined(POLARSSL_PLATFORM_C)
206+
#error "POLARSSL_PLATFORM_FPRINTF_ALT defined, but not all prerequisites"
207+
#endif
208+
209+
#if defined(POLARSSL_PLATFORM_MEMORY) && !defined(POLARSSL_PLATFORM_C)
210+
#error "POLARSSL_PLATFORM_MEMORY defined, but not all prerequisites"
211+
#endif
212+
213+
#if defined(POLARSSL_PLATFORM_PRINTF_ALT) && !defined(POLARSSL_PLATFORM_C)
214+
#error "POLARSSL_PLATFORM_PRINTF_ALT defined, but not all prerequisites"
215+
#endif
216+
217+
#if defined(POLARSSL_PLATFORM_SNPRINTF_ALT) && !defined(POLARSSL_PLATFORM_C)
218+
#error "POLARSSL_PLATFORM_SNPRINTF_ALT defined, but not all prerequisites"
219+
#endif
220+
201221
#if defined(POLARSSL_PLATFORM_SNPRINTF_ALT) && ( defined(_WIN32)\
202222
&& !defined(EFIX64) && !defined(EFI32) )
203223
#error "POLARSSL_PLATFORM_SNPRINTF_ALT defined but not available on Windows"
204224
#endif
205225

226+
#if defined(POLARSSL_PLATFORM_STD_MEM_HDR) &&\
227+
!defined(POLARSSL_PLATFORM_NO_STD_FUNCTIONS)
228+
#error "POLARSSL_PLATFORM_STD_MEM_HDR defined, but not all prerequisites"
229+
#endif
230+
231+
#if defined(POLARSSL_PLATFORM_STD_MALLOC) && !defined(POLARSSL_PLATFORM_MEMORY)
232+
#error "POLARSSL_PLATFORM_STD_MALLOC defined, but not all prerequisites"
233+
#endif
234+
235+
#if defined(POLARSSL_PLATFORM_STD_MALLOC) && !defined(POLARSSL_PLATFORM_MEMORY)
236+
#error "POLARSSL_PLATFORM_STD_MALLOC defined, but not all prerequisites"
237+
#endif
238+
239+
#if defined(POLARSSL_PLATFORM_STD_FREE) && !defined(POLARSSL_PLATFORM_MEMORY)
240+
#error "POLARSSL_PLATFORM_STD_FREE defined, but not all prerequisites"
241+
#endif
242+
243+
#if defined(POLARSSL_PLATFORM_STD_EXIT) &&\
244+
!defined(POLARSSL_PLATFORM_EXIT_ALT)
245+
#error "POLARSSL_PLATFORM_STD_EXIT defined, but not all prerequisites"
246+
#endif
247+
248+
#if defined(POLARSSL_PLATFORM_STD_FPRINTF) &&\
249+
!defined(POLARSSL_PLATFORM_FPRINTF_ALT)
250+
#error "POLARSSL_PLATFORM_STD_FPRINTF defined, but not all prerequisites"
251+
#endif
252+
253+
#if defined(POLARSSL_PLATFORM_STD_PRINTF) &&\
254+
!defined(POLARSSL_PLATFORM_PRINTF_ALT)
255+
#error "POLARSSL_PLATFORM_STD_PRINTF defined, but not all prerequisites"
256+
#endif
257+
258+
#if defined(POLARSSL_PLATFORM_STD_SNPRINTF) &&\
259+
!defined(POLARSSL_PLATFORM_SNPRINTF_ALT)
260+
#error "POLARSSL_PLATFORM_STD_SNPRINTF defined, but not all prerequisites"
261+
#endif
262+
206263
#if defined(POLARSSL_RSA_C) && ( !defined(POLARSSL_BIGNUM_C) || \
207264
!defined(POLARSSL_OID_C) )
208265
#error "POLARSSL_RSA_C defined, but not all prerequisites"

0 commit comments

Comments
 (0)