Include the code that we need#742
Conversation
- `cin` and `cout` require iostream. - `QT_VERSION` requires QtGlobal. - `QSocketNotifier` requires QSocketNotifier. - Unrelated to includes: let Qt figure out the spec. Found by Jeremy Evans on behalf of the OpenBSD project.
There was a problem hiding this comment.
Let's #include <QSocketNotifier> in the .cpp file instead.
There was a problem hiding this comment.
Yup, that also works.
|
@jferris (or anyone on a Mac) -- could you test this out? We removed the I had tested this previously (on the breakpad branch) but never merged it in. I would expect things to be fine but I do not know the history of why the spec was set manually. It seems to have stuck around from when it was originally added to the |
I'm not on a Mac anymore.
When I first started the project, it didn't compile correctly on OS X without the spec. I forget what the exact error was. This may have been improved since the early Qt versions we started on (maybe 4.6). |
|
Hey @mhoran. If you can tell me the steps of what I need to do, I can test it out on my Mac laptop. |
|
Thanks @nritholtz! Check out the |
|
It looks like it was successful, despite the warning. Not sure where that's coming from. If you try to run the specs ( Thanks! |
|
Awesome, thanks! |
|
Merged as 0506f24. |
cinandcoutrequire iostream.QT_VERSIONrequires QtGlobal.QSocketNotifierrequires QSocketNotifier.Found by Jeremy Evans on behalf of the OpenBSD project.