Mercurial > hg > th-libs
changeset 394:7df5991a0ed3
Handle HAVE_STDINT_H vs HAVE_SYS_TYPES_H somewhat more sanely.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 03 Mar 2016 14:11:57 +0200 |
parents | 10dea9ca67a0 |
children | bffd3caf2d2c |
files | th_types.h |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/th_types.h Thu Mar 03 14:11:27 2016 +0200 +++ b/th_types.h Thu Mar 03 14:11:57 2016 +0200 @@ -12,14 +12,12 @@ #define TH_TYPES_H 1 // Check for standard headers -#ifdef HAVE_STDINT_H +#if defined(HAVE_STDINT_H) # include <stdint.h> # ifndef HAVE_INT_TYPES # define HAVE_INT_TYPES 1 # endif -#endif - -#ifdef HAVE_SYS_TYPES_H +#elif defined(HAVE_SYS_TYPES_H) # include <sys/types.h> # ifndef HAVE_INT_TYPES # define HAVE_INT_TYPES 1