xref: /netbsd-src/crypto/external/bsd/openssl/dist/test/rsa_complex.c (revision b0d1725196a7921d003d2c66a14f186abda4176b)
1f4f044c4Schristos /*
2*b0d17251Schristos  * Copyright 2018-2022 The OpenSSL Project Authors. All Rights Reserved.
3f4f044c4Schristos  *
4*b0d17251Schristos  * Licensed under the Apache License 2.0 (the "License").  You may not use
5f4f044c4Schristos  * this file except in compliance with the License.  You can obtain a copy
6f4f044c4Schristos  * in the file LICENSE in the source distribution or at
7f4f044c4Schristos  * https://www.openssl.org/source/license.html
8f4f044c4Schristos  */
9f4f044c4Schristos 
10f4f044c4Schristos /*
11f4f044c4Schristos  * Check to see if there is a conflict between complex.h and openssl/rsa.h.
12f4f044c4Schristos  * The former defines "I" as a macro and earlier versions of the latter use
13f4f044c4Schristos  * for function arguments.
14*b0d17251Schristos  *
15*b0d17251Schristos  * Will always succeed on djgpp, since its libc does not have complex.h.
16f4f044c4Schristos  */
17*b0d17251Schristos 
18*b0d17251Schristos #if !defined(__DJGPP__)
19f4f044c4Schristos # if defined(__STDC_VERSION__)
20f4f044c4Schristos #  if __STDC_VERSION__ >= 199901L
21f4f044c4Schristos #   include <complex.h>
22f4f044c4Schristos #  endif
23f4f044c4Schristos # endif
24f4f044c4Schristos # include <openssl/rsa.h>
25*b0d17251Schristos #endif
26f4f044c4Schristos #include <stdlib.h>
27f4f044c4Schristos 
main(int argc,char * argv[])28f4f044c4Schristos int main(int argc, char *argv[])
29f4f044c4Schristos {
30f4f044c4Schristos     /* There are explicitly no run time checks for this one */
31f4f044c4Schristos     return EXIT_SUCCESS;
32f4f044c4Schristos }
33