djgpp: Skip test/rsa_complex.c
authorJ.W. Jagersma <jwjagersma@gmail.com>
Tue, 27 Sep 2022 16:52:05 +0000 (18:52 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 29 Sep 2022 10:49:03 +0000 (12:49 +0200)
We don't have <complex.h> on djgpp, so this entire test can be skipped.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19286)

(cherry picked from commit 2de00f4f1e20d3dd4cb8e3165f30146c1294f6d4)

test/rsa_complex.c

index 66b85f0ca00da25c68e7b9458828acae44e15ca0..7c77980f5435386b7929be154c402f7346a4c50a 100644 (file)
  * Check to see if there is a conflict between complex.h and openssl/rsa.h.
  * The former defines "I" as a macro and earlier versions of the latter use
  * for function arguments.
+ *
+ * Will always succeed on djgpp, since its libc does not have complex.h.
  */
-#if defined(__STDC_VERSION__)
-# if __STDC_VERSION__ >= 199901L
-#  include <complex.h>
+
+#if !defined(__DJGPP__)
+# if defined(__STDC_VERSION__)
+#  if __STDC_VERSION__ >= 199901L
+#   include <complex.h>
+#  endif
 # endif
+# include <openssl/rsa.h>
 #endif
-#include <openssl/rsa.h>
 #include <stdlib.h>
 
 int main(int argc, char *argv[])