Bug 672280. qcms: Use C99-style flexible arrays. r=bgirard
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Tue, 19 Jul 2011 11:17:47 -0400
changeset 73011 e3d1cabfaf4c2e945e2393883b1d6985674ac3f1
parent 73010 7b49a2857e18220b0b576fb06865651abae0e6f3
child 73012 0798b3817dc90173b91ff6a57d51ba35383fdc0b
push id635
push userjmuizelaar@mozilla.com
push dateTue, 19 Jul 2011 15:22:20 +0000
treeherdermozilla-inbound@3c155b728fe8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgirard
bugs672280
milestone8.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 672280. qcms: Use C99-style flexible arrays. r=bgirard This is in preparation for adding more of these for the upcoming ICCv4 parsing.
gfx/qcms/qcmsint.h
--- a/gfx/qcms/qcmsint.h
+++ b/gfx/qcms/qcmsint.h
@@ -62,22 +62,17 @@ typedef uint16_t uInt16Number;
 struct XYZNumber {
 	s15Fixed16Number X;
 	s15Fixed16Number Y;
 	s15Fixed16Number Z;
 };
 
 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 {
 	uint8_t num_input_channels;
 	uint8_t num_output_channels;
 	uint8_t num_clut_grid_points;
 
 	s15Fixed16Number e00;