View Single Post
Old 14 October 2018, 16:57   #13
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
Quote:
Originally Posted by phx View Post
@Leffmann: Can you confirm those conflicts? Or doesn't MSVC warn about it (which wouldn't surprise me)? Or maybe those are different windows.h, depending on the compiler used?
It's the same with VC, NEAR, ERROR, and ABSOLUTE are already defined. But that stuff can just live in its own file somewhere, IMO that's the best solution when you have a few small system dependent bits in an otherwise fully portable project.

Also thinking about what alpine9000 said, and on a network you may have paths that are much longer than those in the local file system (MAX_PATH, 260 characters), better replace that with 1000 or something.

Last edited by Leffmann; 14 October 2018 at 17:07.
Leffmann is offline  
 
Page generated in 0.04340 seconds with 11 queries