<AWT Dev> A change about the include header file of sun/awt/medialib/mlib_types.h

Charles Lee littlee at linux.vnet.ibm.com
Sun Nov 13 21:59:56 PST 2011


Hi guys,

I'd like to propose a change in mlib_types.h, it looks loke:

-#if 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__ */
+#include <stdint.h>
+#include <stddef.h>

The patch is mainly about using POSIX complaint headers to get rid of 
the if/else define.

I have check uintptr_t on the solaris 11 express. It will be included in 
stdint.h. And my ubuntu works where which malloc.h changed to stddef.h.

Would anyone like to take a look at this?

-- 

Yours Charles




More information about the awt-dev mailing list