Repository navigation
Fix the MSVC build - #5182
Fix the MSVC build#5182
Conversation
|
@jturcotte, thanks for your PR! By analyzing the annotation information on this pull request, we identified @rullzer, @ckamm and @gladiac to be potential reviewers |
|
/cc @ogoffart |
ogoffart
left a comment
There was a problem hiding this comment.
Did you make sure it still compile with mingw?
(why was it needed to rename share.h ?)
There was a problem hiding this comment.
That's both for MSVC and mingw, right?
There was a problem hiding this comment.
Yes, same for _WIN32 in the code, it applies to both MSVC and MinGW
There was a problem hiding this comment.
oh, was that not more correct?
There was a problem hiding this comment.
They just recommend to use the compiler ID if we want to target both Clang and GCC, my last commit to that file was getting stuff out of that block for Clang, but now I need to keep MSVC out of it.
There was a problem hiding this comment.
We have had problems with off_t before (see commit 4f5bfbd )
There was a problem hiding this comment.
OK that one was only a warning so I'll remove it.
There was a problem hiding this comment.
Yes we don"t really need the date...
Then the two fprintf can be merged.
There was a problem hiding this comment.
I can't test that code (at least not on windows), and it won't run anyway so I'd prefer to just cut what I know won't break anything.
There was a problem hiding this comment.
Should the file go in 3rdparty?
Should there be a URL from the readme on where this came from, and which revision. ?
There was a problem hiding this comment.
It's unlikely we'll update that code ever again so I think it's not worth it to start referencing files across the filesystem to 3rdparty in the cmake files.
Where should I put the URL, in the file itself?
There was a problem hiding this comment.
I've put the URL in the file headers.
- Replace functions that are provided by MinGW with a Win32-based implementation - Explicitly export needed symbols from ocsync.dll - Rename share.h to sharemanager.h since the name clashes with one of the Windows headers and get included from there - Remove the timestamp from the fallback csync stderr logging, it's not used since we always provide a log callback
The compiler complained about the PathComponent reference on the lambdas comes from the anonymous namespace.
50b6f83 to
a221ac1
Compare
|
Please look at the commit message for the reason why renaming share.h was necessary. |
|
👍 |
implementation
of the Windows headers and get included from there
not used since we always provide a log callback