Skip to content

Fix error with C99 style comments (//) should be (/**/)#138

Open
CollinMcKinney wants to merge 1 commit into
Pithikos:masterfrom
CollinMcKinney:patch-1
Open

Fix error with C99 style comments (//) should be (/**/)#138
CollinMcKinney wants to merge 1 commit into
Pithikos:masterfrom
CollinMcKinney:patch-1

Conversation

@CollinMcKinney
Copy link
Copy Markdown

// style comments aren't part of C89, they were added in C99

/* C89 only has this style of comment */

@CollinMcKinney
Copy link
Copy Markdown
Author

It builds fine under Clang with the // comments, but it's not part of ANSI C89.

When trying to build under GCC I get a compile error. I'm unsure how MSVC handles this, but regardless it breaks ANSI C89 compliance even if some compilers allow it.

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

Successfully merging this pull request may close these issues.

1 participant