Ensure that PRI formatting defines are available

On some systems, without __STDC_FORMAT_MACROS, the PRI defines
for printing 32 and 64 bit integers are not present.
This commit is contained in:
Johan Wikman
2017-09-04 15:28:17 +03:00
parent 862548666b
commit e51a8b4fb9

View File

@ -39,6 +39,14 @@
#undef OPENSSL_THREAD_DEFINES
#define OPENSSL_THREAD_DEFINES 1
/**
* Fix compile errors for PRId64
* in Centos 6
*/
#ifndef __STDC_FORMAT_MACROS
# define __STDC_FORMAT_MACROS
#endif
/**
* Define intended for use with strerror.
*