Skip to content

Commit

Permalink
Fix meson default_options to c99
Browse files Browse the repository at this point in the history
gnu11 should never have been used.
  • Loading branch information
mm2 committed Dec 30, 2023
1 parent 143e0e0 commit f2a7a20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(
'c',
version: '2.16',
meson_version: '>=0.49.0',
default_options: ['c_std=gnu11']
default_options: ['c_std=c99']
)

version_components = meson.project_version().split('.')
Expand Down
5 changes: 3 additions & 2 deletions testbed/testcms2.c
Original file line number Diff line number Diff line change
Expand Up @@ -8235,7 +8235,7 @@ int CheckPlanarFloat2int(void)
cmsHTRANSFORM transform = cmsCreateTransform(sRGB, TYPE_RGB_FLT_PLANAR,
sRGB, TYPE_RGB_16_PLANAR,INTENT_PERCEPTUAL, 0);

const cmsFloat32Number input[] = { 0, 0.4, 0.8, 0.1, 0.5, 0.9, 0.2, 0.6, 1.0, 0.3, 0.7, 1.0 };
const cmsFloat32Number input[] = { 0.0f, 0.4f, 0.8f, 0.1f, 0.5f, 0.9f, 0.2f, 0.6f, 1.0f, 0.3f, 0.7f, 1.0f };
cmsUInt16Number output[3*4] = { 0 };

cmsDoTransform(transform, input, output, 4);
Expand Down Expand Up @@ -9525,6 +9525,7 @@ void PrintSupportedIntents(void)

// ---------------------------------------------------------------------------------------


int main(int argc, char* argv[])
{
cmsInt32Number Exhaustive = 0;
Expand Down Expand Up @@ -9561,7 +9562,7 @@ int main(int argc, char* argv[])
printf("Installing error logger ... ");
cmsSetLogErrorHandler(FatalErrorQuit);
printf("done.\n");

PrintSupportedIntents();

Check("Base types", CheckBaseTypes);
Expand Down

0 comments on commit f2a7a20

Please sign in to comment.