src/share/native/sun/awt/medialib/mlib_types.h
Print this page
*** 57,68 ****
--- 57,76 ----
typedef float mlib_f32;
typedef double mlib_d64;
#if defined(__SUNPRO_C) || defined(__SUNPRO_CC) || defined(__GNUC__)
+ #if defined(MACOSX)
#include <stddef.h> /* for ptrdiff_t */
#include <stdint.h> /* for uintptr_t */
+ #elif defined(__linux__)
+ #include <stdint.h> /* for uintptr_t */
+ #include <malloc.h> /* for ptrdiff_t */
+ #else
+ #include <link.h> /* for uintptr_t */
+ #include <stddef.h> /* for ptrdiff_t */
+ #endif /* __linux__ */
#if defined(MLIB_OS64BIT) || (defined(MACOSX) && defined(_LP64))
typedef long mlib_s64;
typedef unsigned long mlib_u64;