Fix a warning from MSVC build
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 17 Aug 2018 07:02:53 +0000 (09:02 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 18 Aug 2018 13:29:13 +0000 (15:29 +0200)
Apparently after internal/numbers.h defines INTx_MIN/MAX
stdint gets included and it defines those differently:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\stdint.h(48):
 warning C4005: 'INT8_MIN': macro redefinition

Avoid that by changing the sequence in which the include files
appear in crypto/bio/b_print.c.

[extended tests]

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6995)

crypto/bio/b_print.c

index cdfe05f93ca0c0e901aae8814067626af25b47d1..bf006d122c65e1c44d6a0b084c1039d76d05a86d 100644 (file)
@@ -10,9 +10,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <ctype.h>
-#include "internal/numbers.h"
-#include "internal/cryptlib.h"
 #include <openssl/bio.h>
+#include "internal/cryptlib.h"
+#include "internal/numbers.h"
 
 /*
  * Copyright Patrick Powell 1995