Fix CentOS 6 build failure

CentOS 6 requires __STDC_LIMIT_MACROS to be defined before <stdint.h> is
included to expose INT32_MAX and others.
This commit is contained in:
Markus Mäkelä 2018-02-12 11:22:21 +02:00
parent b8d3da4968
commit 57b0f69ca2
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -47,6 +47,13 @@
# define __STDC_FORMAT_MACROS
#endif
/**
* Needs to be defined for INT32_MAX and others
*/
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
/**
* Define intended for use with strerror.
*