diff options
author | Shailen <shailen.n.jain@gmail.com> | 2010-05-06 12:09:36 -0400 |
---|---|---|
committer | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2010-05-06 12:09:36 -0400 |
commit | 7b0f7248551169b6a98bd918816bd7fbe1f457cf (patch) | |
tree | dc73cd146f47ef949e7201070dc52fec4882e0e5 | |
parent | 56d846ad309fc16ee7644046ad44375366a33ff6 (diff) |
Fix typedef clashes on AIX with <sys/types.h>
Bug 523848
This also fixes a compile problem with zero sized arrays
-rw-r--r-- | qcmsint.h | 5 | ||||
-rw-r--r-- | qcmstypes.h | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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/qcmstypes.h b/qcmstypes.h index 25ffa57..6394f90 100644 --- a/qcmstypes.h +++ b/qcmstypes.h @@ -10,6 +10,8 @@ #if defined (__SVR4) && defined (__sun) /* int_types.h gets included somehow, so avoid redefining the types differently */ #include <sys/int_types.h> +#elif defined (_AIX) +#include <sys/types.h> #else typedef PRInt8 int8_t; typedef PRUint8 uint8_t; |