Skip to content

Conversation

@gfoidl
Copy link
Member

@gfoidl gfoidl commented Mar 27, 2019

Follow up to #668 (missed the review there).

extern "C" is already part of the macro EXPORT, so after expansion it would be

extern "C" extern "C" __declspec(dllexport) int NativeSum(int a, int b)

(for VC++).

Also removed the unneeded header stdio.h.

`extern "C"` is already part of the macro `EXPORT`, so after expansion it would be

```c++
extern "C" extern "C" __declspec(dllexport) int NativeSum(int a, int b)
```
(for VC++).

Also removed the unneeded header `stdio.h`.
@BillWagner BillWagner added the ✨ 1st-time samples contributor! Indicates PRs from new contributors to the samples repository label Apr 10, 2019
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making this change @gfoidl

I've reviewed it, and I'll :shipit: now.

@BillWagner BillWagner merged commit ac52710 into dotnet:master Apr 10, 2019
@gfoidl gfoidl deleted the patch-1 branch April 10, 2019 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ 1st-time samples contributor! Indicates PRs from new contributors to the samples repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants