New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C11 anonymous structs / unions should allow xyz notation for vector types #18

Closed
cirosantilli opened this Issue Mar 22, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@cirosantilli

cirosantilli commented Mar 22, 2017

I think we should be able to do cl_float4.x with -std=c11, as we currently are with -std=gnu99

Just need to patch line

#if defined( __GNUC__) && ! defined( __STRICT_ANSI__ )
:

#if defined( __GNUC__) && ! defined( __STRICT_ANSI__ )

to also check for C11.

See also: http://stackoverflow.com/questions/10979487/opencl-cl-datatypes-arithmetic

Supposing of course CL headers will support c11.

@jrprice

This comment has been minimized.

Contributor

jrprice commented Jul 12, 2017

Fixed in 65159b2.

@jrprice jrprice closed this Jul 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment