Fix netbsd build

Netbsd uses __UINTPTR_TYPE__ to detect gcc in machine/int_types.h
This commit is contained in:
herman ten brugge 2021-08-03 11:32:54 +02:00
parent e449db5f1d
commit e538160a32

View file

@ -123,8 +123,10 @@
#endif
/* Some derived integer types needed to get stdint.h to compile correctly on some platforms */
#ifndef __NetBSD__
#define __UINTPTR_TYPE__ unsigned __PTRDIFF_TYPE__
#define __INTPTR_TYPE__ __PTRDIFF_TYPE__
#endif
#define __INT32_TYPE__ int
#if !defined _WIN32