From f1f5ee17b64397eecfde39960ca11e94064297bd Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 26 Jun 2016 13:40:15 +0200 Subject: include/openssl: don't include in public headers. If application uses any of Windows-specific interfaces, make it application developer's respondibility to include . Rationale is that is quite "toxic" and is sensitive to inclusion order (most notably in relation to ). It's only natural to give complete control to the application developer. Reviewed-by: Rich Salz Reviewed-by: Matt Caswell --- util/mkdef.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/mkdef.pl b/util/mkdef.pl index c2fbfe7062..fa37ccb3e0 100755 --- a/util/mkdef.pl +++ b/util/mkdef.pl @@ -73,7 +73,7 @@ my $linux=0; my $safe_stack_def = 0; my @known_platforms = ( "__FreeBSD__", "PERL5", - "EXPORT_VAR_AS_FUNCTION", "ZLIB" + "EXPORT_VAR_AS_FUNCTION", "ZLIB", "_WIN32" ); my @known_ossl_platforms = ( "VMS", "WIN32", "WINNT", "OS2" ); my @known_algorithms = ( "RC2", "RC4", "RC5", "IDEA", "DES", "BF", @@ -1121,6 +1121,7 @@ sub is_valid if ($keyword eq "VMSNonVAX" && $VMSNonVAX) { return 1; } if ($keyword eq "VMS" && $VMS) { return 1; } if ($keyword eq "WIN32" && $W32) { return 1; } + if ($keyword eq "_WIN32" && $W32) { return 1; } if ($keyword eq "WINNT" && $NT) { return 1; } # Special platforms: # EXPORT_VAR_AS_FUNCTION means that global variables -- cgit v1.2.3