Question about 64-bit code safety

Philip Prindeville philipp_subx at
Tue Sep 6 19:59:13 PDT 2005

I was looking at drm/shared-core/drm.h and saw:

#if defined(__linux__)
typedef unsigned int drm_handle_t;
typedef unsigned long drm_handle_t;     /**< To mapped regions */

and noted two things...  (1) it varies from what's in the CVS tree,
and (2) it ignores the value of __WORDSIZE...

Should it instead read:

#if defined(__linux__) && (__WORDSIZE==32)

instead?  Or am I missing something?


More information about the xorg mailing list