changeset 582:8c516309037e

Check for !defined(HAVE_STDINT_H) && !defined(HAVE_SYS_TYPES_H) before attempting to define int*_t types.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 12 Jan 2020 00:01:41 +0200
parents 935ee9a9f631
children d60e1d751b5b
files th_types.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/th_types.h	Sat Jan 11 20:35:40 2020 +0200
+++ b/th_types.h	Sun Jan 12 00:01:41 2020 +0200
@@ -130,7 +130,7 @@
 
 /* Default assumptions for these types should be ok for most 32/64bit platforms...
  */
-#ifndef HAVE_STDINT_H
+#if !defined(HAVE_STDINT_H) && !defined(HAVE_SYS_TYPES_H)
 typedef unsigned char uint8_t;
 typedef signed char int8_t;
 typedef unsigned short int uint16_t;