Skip to content
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

Windows Compile #7

Open
sunnsurf opened this issue Mar 7, 2017 · 2 comments
Open

Windows Compile #7

sunnsurf opened this issue Mar 7, 2017 · 2 comments

Comments

@sunnsurf
Copy link

sunnsurf commented Mar 7, 2017

Without the restrict keywords, the code seems to compile and run ok using Visual Studio 2015. How critical is the use of the restrict keyword?

@cgaebel
Copy link
Owner

cgaebel commented Mar 8, 2017

I'd accept a patch that conditionally replaces restrict for VS2015

#if (something to detect VS2015)
  #define restrict __restrict__
#endif

or something like that

@joshring
Copy link

joshring commented Mar 15, 2017

Sounds with visual C++ has the restrict but it appears differently as:
__restrict and __declspec(restrict)

source: https://en.wikipedia.org/wiki/Restrict
https://msdn.microsoft.com/en-us/library/5ft82fed.aspx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants