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

MSVC compatibility #39

Closed
wants to merge 5 commits into from
Closed

MSVC compatibility #39

wants to merge 5 commits into from

Conversation

ashikns
Copy link
Contributor

@ashikns ashikns commented Apr 8, 2018

The changes in this PR change some parts of the code to be compatible with MSVC. I haven't tested it on gcc for cross compatibility, but it should be fine.

I'm not happy about the AV_TIMEBASE_Q_CPP macro, but I couldn't think of a properly elegant solution.

@h4tr3d
Copy link
Owner

h4tr3d commented Apr 9, 2018

Which is version of MSVC used by you? Seems that some guys already use AvCpp with MSVC without problems... So, I am confused a little bit.

@ashikns
Copy link
Contributor Author

ashikns commented Apr 9, 2018

I use VS2017 latest, which would be the toolset v141. I think most of these problems could be fixed by disabling some warnings or such, but I don't see how ssize_t would work unless it was manually typedef'd. The other stuff too won't work in msvc by default.

@h4tr3d
Copy link
Owner

h4tr3d commented Apr 10, 2018

Ok. Could you please split merge request to the set of separate ones? I am ready to apply some changes now, but some changes need more deep review.

@ashikns
Copy link
Contributor Author

ashikns commented Apr 10, 2018

Sure. Are these commits fine for now: b186aa4, adf0da5, 492bb51?

@h4tr3d
Copy link
Owner

h4tr3d commented Apr 10, 2018

Only first. I want look deeply to the ssize_t usage on Windows. Last commit (492bb51), look into comment: #39 (diff)

@h4tr3d
Copy link
Owner

h4tr3d commented Apr 11, 2018

Could you please prepare PR for 42c74d4 too?

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.

2 participants