Question about 64-bit code safety

Philip Prindeville philipp_subx at redfish-solutions.com
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;
#else
typedef unsigned long drm_handle_t;     /**< To mapped regions */
#endif


and noted two things...  (1) it varies from what's in the X.org 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?

-Philip




More information about the xorg mailing list