diff --git a/gfx/qcms/qcmsint.h b/gfx/qcms/qcmsint.h index 078ffcb0d3d..b2e7bf6899a 100644 --- a/gfx/qcms/qcmsint.h +++ b/gfx/qcms/qcmsint.h @@ -60,7 +60,12 @@ struct XYZNumber { struct curveType { uint32_t count; +/* Using the C99 flexible array member syntax with IBM compiler */ +#if defined (__IBMC__) || defined (__IBMCPP__) + uInt16Number data[]; +#else uInt16Number data[0]; +#endif }; struct lutType { diff --git a/gfx/qcms/qcmstypes.h b/gfx/qcms/qcmstypes.h index 25ffa57a0a1..6394f907d5e 100644 --- a/gfx/qcms/qcmstypes.h +++ b/gfx/qcms/qcmstypes.h @@ -10,6 +10,8 @@ #if defined (__SVR4) && defined (__sun) /* int_types.h gets included somehow, so avoid redefining the types differently */ #include +#elif defined (_AIX) +#include #else typedef PRInt8 int8_t; typedef PRUint8 uint8_t;