diff options
Diffstat (limited to 'source/blender/blenlib/BLI_sys_types.h')
-rw-r--r-- | source/blender/blenlib/BLI_sys_types.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/source/blender/blenlib/BLI_sys_types.h b/source/blender/blenlib/BLI_sys_types.h index e2ad1949daa..a82e6a562e0 100644 --- a/source/blender/blenlib/BLI_sys_types.h +++ b/source/blender/blenlib/BLI_sys_types.h @@ -38,39 +38,38 @@ extern "C" { #endif -#if defined(__linux__) || defined(__GNU__) || \ - defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD_kernel__) || \ - defined(__HAIKU__) +#if defined(__linux__) || defined(__GNU__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ + defined(__FreeBSD_kernel__) || defined(__HAIKU__) /* Linux-i386, Linux-Alpha, Linux-ppc */ -#include <stdint.h> +# include <stdint.h> /* XXX */ -#ifndef UINT64_MAX -# define UINT64_MAX 18446744073709551615 +# ifndef UINT64_MAX +# define UINT64_MAX 18446744073709551615 typedef uint8_t u_int8_t; typedef uint16_t u_int16_t; typedef uint32_t u_int32_t; typedef uint64_t u_int64_t; -#endif +# endif #elif defined(__APPLE__) -#include <inttypes.h> +# include <inttypes.h> /* MSVC >= 2010 */ #elif defined(_MSC_VER) -#include <stdint.h> +# include <stdint.h> #else /* FreeBSD, Solaris */ -#include <sys/types.h> -#include <stdint.h> +# include <sys/types.h> +# include <stdint.h> #endif /* ifdef platform for types */ -#include <stddef.h> /* size_t define */ +#include <stddef.h> /* size_t define */ #include <stdbool.h> typedef unsigned int uint; |