Skip to content

[C++][RestSDK] Windows vcpkg vs2017 support #2751

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

Merged
merged 10 commits into from
Apr 30, 2019
Merged

[C++][RestSDK] Windows vcpkg vs2017 support #2751

merged 10 commits into from
Apr 30, 2019

Conversation

dan-drl
Copy link
Contributor

@dan-drl dan-drl commented Apr 26, 2019

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh, ./bin/openapi3/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: master, 3.4.x, 4.0.x. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

Description of the PR

This addresses comments made in #2747 (Better support for vckpg and visual studio 2017).

(details of the change, additional tests that have been done, reference to the issue for tracking, etc)

Fixes #2747

@etherealjoy etherealjoy changed the title Cpp windows vkpkg vs2017 support [C++][RestSDK] Windows vcpkg vs2017 support Apr 27, 2019
@etherealjoy
Copy link
Contributor

@etherealjoy
Copy link
Contributor

etherealjoy commented Apr 30, 2019

I got a warning with this during compilation

/home/dev/openapi-generator/samples/client/petstore/cpp-restsdk/api/../ApiClient.h:31:14: 
warning: extra tokens at end of #ifdef directive
#ifdef _WIN32|_WIN64

I tried this syntax below and I think it would be more suitable due to no warning.

#if defined (_WIN32) || defined (_WIN64)
#undef U
#endif

@dan-drl
Copy link
Contributor Author

dan-drl commented Apr 30, 2019

Alright, I also switched my branch to recommended. #if defined (_WIN32) || defined (_WIN64).

@etherealjoy etherealjoy added this to the 4.0.0 milestone Apr 30, 2019
@etherealjoy etherealjoy merged commit a7df4ad into OpenAPITools:master Apr 30, 2019
@dan-drl dan-drl deleted the cpp-windows-vkpkg-vs2017-support branch April 30, 2019 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REQ][cpp-restsdk] Better support for vckpg and visual studio 2017
3 participants